nb: passthrough todo subcommand

This commit is contained in:
Matthew Ryan Dillon 2025-12-15 17:52:26 -05:00
parent dc9ebef089
commit 4e08da2614
2 changed files with 9 additions and 0 deletions

View file

@ -22,6 +22,8 @@ Commands:
log Show commit log
diff Show differences
status Show diff summary
todo Add a todo item (or manage todos)
archive Archive completed todos
EOF
}
@ -45,6 +47,13 @@ case "$1" in
status)
jj diff -s
;;
todo)
if [[ "$2" == "archive" && -z "$3" ]]; then
todo_archive todo.xit done.xit
else
todo "${@:2}"
fi
;;
"")
show_help
;;