From a9e1ee39d319addb86395aab4050c01e0d98fe40 Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Mon, 23 Sep 2024 22:22:26 -0700 Subject: [PATCH] client: docker-finance.d: subscript: remove hledger default args These args are now passed within container's `lib_hledger` or docker-finance.d's default generated hledger.conf. --- .../container/shell/subscript.bash.in | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/client/docker-finance.d/container/shell/subscript.bash.in b/client/docker-finance.d/container/shell/subscript.bash.in index eda7e08..38247f9 100644 --- a/client/docker-finance.d/container/shell/subscript.bash.in +++ b/client/docker-finance.d/container/shell/subscript.bash.in @@ -25,22 +25,16 @@ [ -z "$DOCKER_FINANCE_CONTAINER_CMD" ] && echo "DOCKER_FINANCE_CONTAINER_CMD not set, check installation" >&2 -# NOTE: hledger-based commands ending in `\`: the escape is needed so you can add more arguments as needed -# TODO: remove default 'not:' arguments to `hledger{-ui,-web}` once distributions support hledger 1.34.99-gcf0c7c2ef-20240702 or higher (--conf support) - # CLI hledger alias @DOCKER_FINANCE_SUBPROFILE@_hledger='$DOCKER_FINANCE_CONTAINER_CMD @DOCKER_FINANCE_PROFILE@/@DOCKER_FINANCE_SUBPROFILE@ hledger' +# Note: command ends in `\` and newline so you can add more arguments as needed alias @DOCKER_FINANCE_SUBPROFILE@_bal='$DOCKER_FINANCE_CONTAINER_CMD @DOCKER_FINANCE_PROFILE@/@DOCKER_FINANCE_SUBPROFILE@ hledger bal \ assets liabilities \ - not:desc:balances\$ not:equity:balances\$ not:archive \ ' # Terminal UI -alias @DOCKER_FINANCE_SUBPROFILE@_ui='$DOCKER_FINANCE_CONTAINER_CMD @DOCKER_FINANCE_PROFILE@/@DOCKER_FINANCE_SUBPROFILE@ hledger-ui -w \ - assets liabilities \ - not:desc:balances\$ not:equity:balances\$ not:archive \ -' +alias @DOCKER_FINANCE_SUBPROFILE@_ui='$DOCKER_FINANCE_CONTAINER_CMD @DOCKER_FINANCE_PROFILE@/@DOCKER_FINANCE_SUBPROFILE@ hledger-ui' alias @DOCKER_FINANCE_SUBPROFILE@_hledger-ui='@DOCKER_FINANCE_SUBPROFILE@_ui' # Terminal UI (visidata) @@ -48,10 +42,7 @@ alias @DOCKER_FINANCE_SUBPROFILE@_vui='$DOCKER_FINANCE_CONTAINER_CMD @DOCKER_FIN alias @DOCKER_FINANCE_SUBPROFILE@_hledger-vui='@DOCKER_FINANCE_SUBPROFILE@_vui' # Web UI -alias @DOCKER_FINANCE_SUBPROFILE@_web='$DOCKER_FINANCE_CONTAINER_CMD @DOCKER_FINANCE_PROFILE@/@DOCKER_FINANCE_SUBPROFILE@ hledger-web --serve --host=0.0.0.0 --base-url http://127.0.0.1:5000 --allow=view \ - assets liabilities \ - not:desc:balances\$ not:equity:balances\$ not:archive \ -' +alias @DOCKER_FINANCE_SUBPROFILE@_web='$DOCKER_FINANCE_CONTAINER_CMD @DOCKER_FINANCE_PROFILE@/@DOCKER_FINANCE_SUBPROFILE@ hledger-web \' alias @DOCKER_FINANCE_SUBPROFILE@_hledger-web='@DOCKER_FINANCE_SUBPROFILE@_web' # Fetches, imports, generates taxes and reports (using defaults)