imag/bin/domain/imag-log
Matthias Beyer 32c5ec1e00 Fix: Sort by date, not by id
This patch fixes a bug. We stated in the helptext of the "show" command
that when showing several logs, we sort by date. This was not true as we
sorted by Id, which also included the name of the log, hence we
effectively sorted by name.

This patch fixes that. Output is not sorted by date.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 10:57:21 +02:00
..
src Fix: Sort by date, not by id 2019-06-30 10:57:21 +02:00
Cargo.toml Update toml-query to 0.9.0 2019-05-29 18:39:25 +02:00
README.md Initial import: imag-log 2018-01-03 16:54:08 +01:00

README.md

Log

The "imag-log" module is a lightweight interface to the "imag-diary" command.

It is intended as a tumbeblog-like diary, where one does not care to fire up an editor and type in a long text, but rather type a few words and forget about it:

Usage

Logs can be created via an entry in the configuration file in the section log:

[log]
logs = ["work", "hobby", "music"]
default = "hobby"

The default key is required and the name which is used here must appear in the logs array.

In the above configuration snippet, the logs work, hobby and music are created. The user may now log to one of these logs with:

imag log --to <logname> "Some message"
# or
imag log -t <logname> "Some message"
# or, to the default log:
imag log "Some message"

Logs can be read by naming the log:

imag log show work

which prints one log per line (including time it was logged).