Make dokku help friendlier
This commit is contained in:
7
commands
7
commands
@@ -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
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user