From a90482de8c4f1d361dcaae573751c2ad892edada Mon Sep 17 00:00:00 2001 From: yage Date: Wed, 7 Feb 2024 15:16:51 -0700 Subject: [PATCH] swap INFO for DEBUG --- zsh/lib/cloud/aws/rds.module.zsh | 2 +- zsh/lib/misc/tally.module.zsh | 4 ++-- zsh/lib/scwrypts/run.module.zsh | 2 -- zsh/lib/utils/io.fzf.zsh | 4 ++-- zsh/lib/utils/io.zsh | 4 ++-- zsh/system/config/symlinks | 2 +- zsh/system/packages/install | 2 +- 7 files changed, 9 insertions(+), 11 deletions(-) diff --git a/zsh/lib/cloud/aws/rds.module.zsh b/zsh/lib/cloud/aws/rds.module.zsh index 8ed390d..4285f85 100644 --- a/zsh/lib/cloud/aws/rds.module.zsh +++ b/zsh/lib/cloud/aws/rds.module.zsh @@ -86,7 +86,7 @@ RDS__GET_DATABASE_CREDENTIALS() { user-input ) _RDS_AUTH__userinput ;; esac - [[ $PRINT_PASSWORD -eq 1 ]] && INFO "password : $DB_PASS" + [[ $PRINT_PASSWORD -eq 1 ]] && DEBUG "password : $DB_PASS" return 0 } diff --git a/zsh/lib/misc/tally.module.zsh b/zsh/lib/misc/tally.module.zsh index 6ff76b3..eb94bef 100644 --- a/zsh/lib/misc/tally.module.zsh +++ b/zsh/lib/misc/tally.module.zsh @@ -99,8 +99,8 @@ TALLY() { true ) printf "$NEW_VALUE" ;; false ) case $TALLY_NAME in - default ) INFO "current tally : $NEW_VALUE" ;; - * ) INFO "$TALLY_NAME : $NEW_VALUE" ;; + default ) SUCCESS "current tally : $NEW_VALUE" ;; + * ) SUCCESS "$TALLY_NAME : $NEW_VALUE" ;; esac esac } diff --git a/zsh/lib/scwrypts/run.module.zsh b/zsh/lib/scwrypts/run.module.zsh index c5a1d10..eb2b44f 100644 --- a/zsh/lib/scwrypts/run.module.zsh +++ b/zsh/lib/scwrypts/run.module.zsh @@ -131,7 +131,6 @@ SCWRYPTS__GET_RUNSTRING__zsh() { options: - -h, --help display this message and exit - -v, --verbose output debugging information description: - \" @@ -149,7 +148,6 @@ SCWRYPTS__GET_RUNSTRING__zsh() { set -- throw-away \$(echo \" \$VARSPLIT \") \${@:2} ;; -h | --help ) USAGE; exit 0 ;; - -v | --verbose ) INFO \"setting SCWRYPTS_LOG_LEVEL to 'debug'\"; export SCWRYPTS_LOG_LEVEL=debug ;; * ) MAIN_ARGS+=(\$1) ;; esac shift 1 diff --git a/zsh/lib/utils/io.fzf.zsh b/zsh/lib/utils/io.fzf.zsh index 8db69c0..54f9661 100644 --- a/zsh/lib/utils/io.fzf.zsh +++ b/zsh/lib/utils/io.fzf.zsh @@ -46,11 +46,11 @@ FZF_USER_INPUT() { # allow user to type custom answers; reconfirm if ambiguous w ##################################################################### FZF_HEAD() { # prefer user input over selected - WARNING 'FZF_HEAD is deprecated; please switch to FZF_USER_INPUT (drop-in fix!)' + WARNING 'FZF_HEAD is deprecated and will be unavailable in v4.2; please switch to FZF_USER_INPUT (drop-in fix!)' FZF $@ --print-query | sed '/^$/d' | head -n1; } FZF_TAIL() { # prefer selected over user input - WARNING 'FZF_TAIL is deprecated; please switch to FZF_USER_INPUT (drop-in fix!)' + WARNING 'FZF_TAIL is deprecated and will be unavailable in v4.2; please switch to FZF_USER_INPUT (drop-in fix!)' FZF $@ --print-query | sed '/^$/d' | tail -n1; } diff --git a/zsh/lib/utils/io.zsh b/zsh/lib/utils/io.zsh index 0a48095..1887b98 100644 --- a/zsh/lib/utils/io.zsh +++ b/zsh/lib/utils/io.zsh @@ -111,7 +111,7 @@ source "${0:a:h}/io.fzf.zsh" # allow user to select from a list of inputs EDIT() { # edit a file in user's preferred editor [ $CI ] && { - INFO 'currently in CI, skipping EDIT' + WARNING 'currently in CI, skipping EDIT' return 0 } @@ -162,7 +162,7 @@ GETSUDO() { READ() { [ $CI ] && { - INFO 'currently in CI, skipping READ' + WARNING 'currently in CI, skipping READ' return 0 } read $@