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:
@@ -28,7 +28,7 @@ function docker-finance::completion()
|
|||||||
mapfile -t _profiles < <(pushd "${DOCKER_FINANCE_CONTAINER_FLOW}"/profiles &>/dev/null && ls -d */*)
|
mapfile -t _profiles < <(pushd "${DOCKER_FINANCE_CONTAINER_FLOW}"/profiles &>/dev/null && ls -d */*)
|
||||||
declare -r _profiles
|
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
|
local _reply
|
||||||
|
|
||||||
@@ -63,13 +63,13 @@ function docker-finance::completion()
|
|||||||
import)
|
import)
|
||||||
mapfile -t _reply < <(compgen -W "help year${global_arg_delim_2}" -- "$_cur")
|
mapfile -t _reply < <(compgen -W "help year${global_arg_delim_2}" -- "$_cur")
|
||||||
;;
|
;;
|
||||||
ledger | hledger)
|
hledger | ledger)
|
||||||
mapfile -t _reply < <(compgen -W "-h" -- "$_cur")
|
mapfile -t _reply < <(compgen -W "-h" -- "$_cur")
|
||||||
;;
|
;;
|
||||||
ledger-ui | hledger-ui)
|
hledger-ui | ledger-ui)
|
||||||
mapfile -t _reply < <(compgen -W "-h" -- "$_cur")
|
mapfile -t _reply < <(compgen -W "-h" -- "$_cur")
|
||||||
;;
|
;;
|
||||||
ledger-web | hledger-web)
|
hledger-web | ledger-web)
|
||||||
mapfile -t _reply < <(compgen -W "-h" -- "$_cur")
|
mapfile -t _reply < <(compgen -W "-h" -- "$_cur")
|
||||||
;;
|
;;
|
||||||
meta)
|
meta)
|
||||||
|
|||||||
Reference in New Issue
Block a user