From 5684d94d63549f1de3ba3bf8a885bf73dafcf3aa Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Tue, 13 Aug 2024 00:33:20 -0700 Subject: [PATCH] client: completion.bash: set xtrace if debug enabled --- client/src/docker/completion.bash | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/docker/completion.bash b/client/src/docker/completion.bash index 6553cdb..04955e1 100644 --- a/client/src/docker/completion.bash +++ b/client/src/docker/completion.bash @@ -17,6 +17,14 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +# WARNING: because of completion, the docker-finance environment file +# is never read. Ergo, for debugging, you'll need to run the following: +# +# `export DOCKER_FINANCE_DEBUG=true && . ~/.bashrc` +# +# and then proceed to call `docker-finance` / `dfi` with your commands. +[ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv + # If not yet installed, gracefully exit if ! hash docker &>/dev/null; then exit 0