~eli_oat/wiki.lua

super simple cli wiki software in lua

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~eli_oat/wiki.lua
read/write
git@git.sr.ht:~eli_oat/wiki.lua

You can also use your local clone with git send-email.

#wiki.lua

Wicked simple WIP wiki in lua.

Currently the only dependencies are lua and sqlite3 -- I'm not using lsqlite3, yet, but should probably do so down the road so that I don't have to continue doing unspeakable things with sql directly in the code.

#Getting started

Before you get started, gotta run the bootstrapping script,

$ ./bootstrap.sh -b

Use the -b flag the first time, this'll walk you through setting up.

Use the -p flag to add new people later on.

#Usage

Make things go brrrrrrrr and see the help text with,

$ lua wiki.lua

The help text,

wiki.lua, a small cli wiki written in lua.

Command Flags:
	new ....... -n, create a new post
	reply ..... -r, reply to an existing post
	help ...... -h, display this message

Usage:
	New Post:
		$ cat post.txt | lua wiki.lua -n "hello world"

	where 'post.txt' contains the body of a post, 
	and where 'hello world' is the post's title.


	Reply to Post:
		$ cat post.txt | lua wiki.lua -r 1

	where 'post.txt' contains the body of a post, 
	and where '1' is the id of the post you are replying to.

#TODO

  • [x] Add a way to make new posts
  • [x] Add a way to reply to existing posts
  • [x] Add bootstrapping script
  • [] Add a way to display/view posts
  • [] Add a way to edit posts
  • [] Add a way to search/filter posts