Make dokku help friendlier

This commit is contained in:
Jose Diaz-Gonzalez
2016-08-28 01:09:49 -04:00
parent f2e8466ae3
commit 302406456f

View File

@@ -79,7 +79,6 @@ case "$1" in
"$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/subcommands/unlink" "$@"
;;
help | $PLUGIN_COMMAND_PREFIX:help)
help_content_func() {
# shellcheck disable=SC2034
@@ -126,8 +125,12 @@ help_list
echo ''
echo 'Additional commands:'
help_content_func | sort | column -c2 -t -s,
else
elif [[ $(ps -o command= $PPID) == *"--all"* ]]; then
help_content_func
else
cat<<help_desc
$PLUGIN_COMMAND_PREFIX, Plugin for managing $PLUGIN_SERVICE services.
help_desc
fi
;;