swap INFO for DEBUG
This commit is contained in:
parent
261bbee1a4
commit
a90482de8c
@ -86,7 +86,7 @@ RDS__GET_DATABASE_CREDENTIALS() {
|
|||||||
user-input ) _RDS_AUTH__userinput ;;
|
user-input ) _RDS_AUTH__userinput ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[[ $PRINT_PASSWORD -eq 1 ]] && INFO "password : $DB_PASS"
|
[[ $PRINT_PASSWORD -eq 1 ]] && DEBUG "password : $DB_PASS"
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
@ -99,8 +99,8 @@ TALLY() {
|
|||||||
true ) printf "$NEW_VALUE" ;;
|
true ) printf "$NEW_VALUE" ;;
|
||||||
false )
|
false )
|
||||||
case $TALLY_NAME in
|
case $TALLY_NAME in
|
||||||
default ) INFO "current tally : $NEW_VALUE" ;;
|
default ) SUCCESS "current tally : $NEW_VALUE" ;;
|
||||||
* ) INFO "$TALLY_NAME : $NEW_VALUE" ;;
|
* ) SUCCESS "$TALLY_NAME : $NEW_VALUE" ;;
|
||||||
esac
|
esac
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,6 @@ SCWRYPTS__GET_RUNSTRING__zsh() {
|
|||||||
|
|
||||||
options: -
|
options: -
|
||||||
-h, --help display this message and exit
|
-h, --help display this message and exit
|
||||||
-v, --verbose output debugging information
|
|
||||||
|
|
||||||
description: -
|
description: -
|
||||||
\"
|
\"
|
||||||
@ -149,7 +148,6 @@ SCWRYPTS__GET_RUNSTRING__zsh() {
|
|||||||
set -- throw-away \$(echo \" \$VARSPLIT \") \${@:2}
|
set -- throw-away \$(echo \" \$VARSPLIT \") \${@:2}
|
||||||
;;
|
;;
|
||||||
-h | --help ) USAGE; exit 0 ;;
|
-h | --help ) USAGE; exit 0 ;;
|
||||||
-v | --verbose ) INFO \"setting SCWRYPTS_LOG_LEVEL to 'debug'\"; export SCWRYPTS_LOG_LEVEL=debug ;;
|
|
||||||
* ) MAIN_ARGS+=(\$1) ;;
|
* ) MAIN_ARGS+=(\$1) ;;
|
||||||
esac
|
esac
|
||||||
shift 1
|
shift 1
|
||||||
|
@ -46,11 +46,11 @@ FZF_USER_INPUT() { # allow user to type custom answers; reconfirm if ambiguous w
|
|||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
FZF_HEAD() { # prefer user input over selected
|
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 $@ --print-query | sed '/^$/d' | head -n1;
|
||||||
}
|
}
|
||||||
FZF_TAIL() { # prefer selected over user input
|
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;
|
FZF $@ --print-query | sed '/^$/d' | tail -n1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
EDIT() { # edit a file in user's preferred editor
|
||||||
[ $CI ] && {
|
[ $CI ] && {
|
||||||
INFO 'currently in CI, skipping EDIT'
|
WARNING 'currently in CI, skipping EDIT'
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -162,7 +162,7 @@ GETSUDO() {
|
|||||||
|
|
||||||
READ() {
|
READ() {
|
||||||
[ $CI ] && {
|
[ $CI ] && {
|
||||||
INFO 'currently in CI, skipping READ'
|
WARNING 'currently in CI, skipping READ'
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
read $@ </dev/tty
|
read $@ </dev/tty
|
||||||
|
@ -18,7 +18,7 @@ SETUP_SYMLINK() {
|
|||||||
local TARGET_CONFIG="$HOME/.config/$2"
|
local TARGET_CONFIG="$HOME/.config/$2"
|
||||||
|
|
||||||
[ ! -f "$SOURCE_CONFIG" ] && [ ! -d "$SOURCE_CONFIG" ] && [ -f "$TARGET_CONFIG" ] && {
|
[ ! -f "$SOURCE_CONFIG" ] && [ ! -d "$SOURCE_CONFIG" ] && [ -f "$TARGET_CONFIG" ] && {
|
||||||
INFO 'SOURCE_CONFIG is not tracked; copying from TARGET_CONFIG'
|
DEBUG 'SOURCE_CONFIG is not tracked; copying from TARGET_CONFIG'
|
||||||
mkdir -p "$(dirname "$SOURCE_CONFIG")"
|
mkdir -p "$(dirname "$SOURCE_CONFIG")"
|
||||||
cp "$TARGET_CONFIG" "$SOURCE_CONFIG"
|
cp "$TARGET_CONFIG" "$SOURCE_CONFIG"
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ MAIN() {
|
|||||||
|
|
||||||
[ ! $NAME ] && {
|
[ ! $NAME ] && {
|
||||||
NAME=$(echo $TARGET | sed 's/.*\///; s/\.git$//')
|
NAME=$(echo $TARGET | sed 's/.*\///; s/\.git$//')
|
||||||
INFO "using default name '$NAME'"
|
DEBUG "using default name '$NAME'"
|
||||||
}
|
}
|
||||||
|
|
||||||
[ -d "$PACKAGE_INSTALL_DIR/$NAME" ] && [[ $SKIP_PULL -eq 0 ]] && {
|
[ -d "$PACKAGE_INSTALL_DIR/$NAME" ] && [[ $SKIP_PULL -eq 0 ]] && {
|
||||||
|
Loading…
Reference in New Issue
Block a user