more log subcommands

This commit is contained in:
Mikaël Cluseau
2025-07-20 22:30:10 +02:00
parent b1bf8f3fb8
commit 52c23653ac
3 changed files with 109 additions and 47 deletions

View File

@ -3,7 +3,7 @@ set -ex
dkl=target/debug/dkl
test=${1:-log}
test=${1:-log-clean}
export RUST_LOG=debug
@ -19,8 +19,11 @@ case $test in
cat tmp/log/bash.log
;;
log)
$dkl log --log-path tmp/log bash 20250720_12 20250720_16
log-ls) $dkl log --log-path tmp/log bash ls ;;
log-cat) $dkl log --log-path tmp/log bash cat 20250720_12 20301231_23 ;;
log-clean)
$dkl log --log-path tmp/log bash ls -l
$dkl log --log-path tmp/log bash cleanup 0
;;
*) echo 1>&2 "unknown test: $test"; exit 1 ;;