more log subcommands
This commit is contained in:
9
test-dkl
9
test-dkl
@ -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 ;;
|
||||
|
Reference in New Issue
Block a user