Commit grafiek

24 Commits

Auteur SHA1 Bericht Datum
250af52750 add(): Pass HistoryEntry struct 2021-04-05 13:00:30 +02:00
88362e99a9 Introduce HistoryEntry struct ; refactor search and delete 2021-04-05 12:49:13 +02:00
lawl
776dcebb04 Log cwd 2021-04-05 11:54:09 +02:00
lawl
1809905992 Add DB migrations 2021-04-05 11:44:43 +02:00
lawl
305e4300cc Fix off-by-one in CLI 2021-04-05 10:43:54 +02:00
lawl
b02911c9b4 Add 'delete' subcommand to delete matching records from log 2021-04-05 10:29:50 +02:00
lawl
8477ba5bfe CLI: Properly parse cli flags for subcommands
Previously we parsed cli flags globally instead of per subcommand, which was weird.
2021-04-05 10:18:35 +02:00
lawl
54697be895 Search: Properly exit on error 2021-04-05 09:53:25 +02:00
da945dce2d add LICENSE 2021-03-23 14:35:50 +01:00
ee7a0868a8 Update README.md: Mention repos, minor improvements 2021-03-23 14:35:50 +01:00
e63ad28f74 Print usage also when an invalid command is supplied 2021-03-22 19:51:29 +01:00
eb0612864d search: concat multiple arguments. Don't just use the first
This is more natural
2021-03-22 19:49:44 +01:00
lawl
31973bd5dd Use exit status 23 as a do not log code 2021-03-21 12:45:26 +01:00
50515b2d72 Update README 2021-03-21 10:55:49 +01:00
c67d38482d add: Fix panic when history command returns nothing
If you disable bash history files alltogether, "history 1" will not contain
anything on first launch of a terminal and therefore the regex
has nothing to parse, so we get an out of bounds array access.
So fix this.

Though it's a dirty silent fail now, I don't want error messages/warnings
everytime I open a shell.
2021-03-21 10:43:06 +01:00
79a26e2aa1 databaseLocation(): Consider env variable override
Allow overriding databaseLocation by an environment variable.

Closes: #1
2021-03-21 10:38:12 +01:00
1d991b50fc Usage text: Mention import 2021-03-21 10:29:41 +01:00
lawl
5604c310d7 Pass DB into functions. Implement import feature 2021-03-20 20:47:05 +01:00
9925920e04 Update README.md 2021-03-20 20:42:35 +01:00
lawl
f58c82a3ee remove commented out code 2021-03-20 20:28:03 +01:00
lawl
e3e7fd74e0 Add super minimalistic readme 2021-03-20 20:27:06 +01:00
lawl
a2bcc9685a Don't crash when no arguments are given 2021-03-20 20:22:38 +01:00
lawl
c271bc986d Init+ minor improvements 2021-03-20 20:18:27 +01:00
920db7d925 First commit 2021-03-20 19:39:18 +01:00