diff --git a/home/bin/executable_nb b/home/bin/executable_nb index 8c05271..19a8cbb 100644 --- a/home/bin/executable_nb +++ b/home/bin/executable_nb @@ -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 ;; diff --git a/home/bin/executable_archive_todos b/home/bin/executable_todo_archive similarity index 100% rename from home/bin/executable_archive_todos rename to home/bin/executable_todo_archive