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).
This commit is contained in:
2024-08-12 23:08:30 -07:00
parent d06c894acb
commit 7e75bb542b

View File

@@ -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)