A minimal personal journaling system, for the command-line, I wrote for myself.
To install, clone this repository to your machine and run:
cabal install
$ blg
Usage:
blg init
blg commit [-m=<message>]
blg show
blg [-hp]
Options:
-h --help Show this help message
-p --path Print the current `.battlelogs.md` in use
-m --message Enter an entry without spawning an editor
To add entries to the battle log do:
$ blg commit -m "Hello World"
This will create a .battlelogs.md
file in your $HOME
directory and add an
entry to it. Typing blg commit
without the -m
flag will cause blg
to open
your default text editor ($EDITOR
) and capture its output, adding it to the
logs file.
The blg init
command is meant to create "local" battle logs. Running it will
create an empty .battlelogs.md
file in the current directory, which will
automatically become blg
's output file.
blg show
(as of right now) will simply open the .battlelogs.md
file in use
in the system's $PAGER
. Pretty colors and a better logging display (and
format) are a todo.
This code is licensed under the GPLv2 License. See LICENSE for more information.