From 5ef5d24f3b66e47cffd57b80642bdff5dffc73a3 Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Thu, 8 Aug 2024 19:24:18 -0700 Subject: [PATCH] container: bash: completion: add `times` --- container/src/finance/completion.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/container/src/finance/completion.bash b/container/src/finance/completion.bash index 34d1106..6c7bc16 100644 --- a/container/src/finance/completion.bash +++ b/container/src/finance/completion.bash @@ -28,7 +28,7 @@ function docker-finance::completion() mapfile -t _profiles < <(pushd "${DOCKER_FINANCE_CONTAINER_FLOW}"/profiles &>/dev/null && ls -d */*) declare -r _profiles - local -r _commands=("all" "edit" "fetch" "import" "ledger" "ledger-ui" "ledger-web" "meta" "plugins" "reports" "root" "taxes") + local -r _commands=("all" "edit" "fetch" "import" "ledger" "ledger-ui" "ledger-web" "meta" "plugins" "reports" "root" "taxes" "times") local _reply @@ -91,6 +91,9 @@ function docker-finance::completion() taxes) mapfile -t _reply < <(compgen -W "help all${global_arg_delim_2} tag${global_arg_delim_2} account${global_arg_delim_2} year${global_arg_delim_2} write${global_arg_delim_2}" -- "$_cur") ;; + times) + mapfile -t _reply < <(compgen -W "help" -- "$_cur") + ;; esac declare -r _reply COMPREPLY=("${_reply[@]}")