include echo functions that don't print when quiet arg is passed
This commit is contained in:
@@ -4,7 +4,7 @@ source "$(dirname $0)/../common/functions"
|
||||
|
||||
case "$1" in
|
||||
apps)
|
||||
[[ -z "$DOKKU_QUIET_OUTPUT" ]] && info2 "My Apps"
|
||||
info2 "My Apps"
|
||||
find $DOKKU_ROOT -follow -maxdepth 1 -type d \( ! -iname ".*" \) -not -path $DOKKU_ROOT/tls | sed 's|^\./||g' | sed 's|'$DOKKU_ROOT'\/||' | tail -n +2 | sort
|
||||
;;
|
||||
|
||||
|
||||
@@ -17,6 +17,22 @@ function info2() {
|
||||
echo "=====> $@"
|
||||
}
|
||||
|
||||
function info1_quiet() {
|
||||
if [[ -z "$DOKKU_QUIET_OUTPUT" ]];then
|
||||
echo "-----> $@"
|
||||
else
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
function info2_quiet() {
|
||||
if [[ -z "$DOKKU_QUIET_OUTPUT" ]];then
|
||||
echo "=====> $@"
|
||||
else
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
function verbose() {
|
||||
echo " $@"
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ case "$1" in
|
||||
fi
|
||||
done
|
||||
|
||||
[[ -z "$DOKKU_QUIET_OUTPUT" ]] && info2 "$APP config vars"
|
||||
info2 "$APP config vars"
|
||||
config_styled_hash "$VARS"
|
||||
;;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ case "$1" in
|
||||
APP="$2"
|
||||
|
||||
dokku domains:setup $APP
|
||||
[[ -z "$DOKKU_QUIET_OUTPUT" ]] && info2 "$APP Domain Names"
|
||||
info2 "$APP Domain Names"
|
||||
cat "$DOKKU_ROOT/$APP/VHOST"
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user