From 7e75bb542bbb5780e4a30f1505afc79664479c33 Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Mon, 12 Aug 2024 23:08:30 -0700 Subject: [PATCH] container: completion: add `hledger` family Since inception, the intent was to abstract the "interface" to allow for a general-purpose CLI accounting ledger. However, there appears to be confusion about whether the underlying implementation is `ledger` accounting software or `hledger` accounting software. So, making it clearer that it's `hledger` accounting software (although, will continue to keep the `ledger` command for backwards-compatibility). --- container/src/finance/completion.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/container/src/finance/completion.bash b/container/src/finance/completion.bash index 80a1fd7..65ffe9e 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" "times") + local -r _commands=("all" "edit" "fetch" "hledger" "hledger-ui" "hledger-web" "import" "ledger" "ledger-ui" "ledger-web" "meta" "plugins" "reports" "root" "taxes" "times") local _reply @@ -63,13 +63,13 @@ function docker-finance::completion() import) mapfile -t _reply < <(compgen -W "help year${global_arg_delim_2}" -- "$_cur") ;; - ledger | hledger) + hledger | ledger) mapfile -t _reply < <(compgen -W "-h" -- "$_cur") ;; - ledger-ui | hledger-ui) + hledger-ui | ledger-ui) mapfile -t _reply < <(compgen -W "-h" -- "$_cur") ;; - ledger-web | hledger-web) + hledger-web | ledger-web) mapfile -t _reply < <(compgen -W "-h" -- "$_cur") ;; meta)