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.
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.
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.