Compatibility with dokku 0.3.x & 0.4.x for help output
This commit is contained in:
8
commands
8
commands
@@ -180,7 +180,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
help)
|
help)
|
||||||
cat && cat<<EOF
|
HELP=$(cat<<EOF
|
||||||
$PLUGIN_COMMAND_PREFIX:alias <name> <alias>, Set an alias for the docker link
|
$PLUGIN_COMMAND_PREFIX:alias <name> <alias>, Set an alias for the docker link
|
||||||
$PLUGIN_COMMAND_PREFIX:create <name>, Create a $PLUGIN_SERVICE service
|
$PLUGIN_COMMAND_PREFIX:create <name>, Create a $PLUGIN_SERVICE service
|
||||||
$PLUGIN_COMMAND_PREFIX:destroy <name>, Delete the $PLUGIN_SERVICE service and stop its container if there are no links left
|
$PLUGIN_COMMAND_PREFIX:destroy <name>, Delete the $PLUGIN_SERVICE service and stop its container if there are no links left
|
||||||
@@ -199,6 +199,12 @@ case "$1" in
|
|||||||
$PLUGIN_COMMAND_PREFIX:start <name>, Start a previously stopped $PLUGIN_SERVICE service
|
$PLUGIN_COMMAND_PREFIX:start <name>, Start a previously stopped $PLUGIN_SERVICE service
|
||||||
$PLUGIN_COMMAND_PREFIX:stop <name>, Stop a running $PLUGIN_SERVICE service
|
$PLUGIN_COMMAND_PREFIX:stop <name>, Stop a running $PLUGIN_SERVICE service
|
||||||
EOF
|
EOF
|
||||||
|
)
|
||||||
|
if [[ -n $DOKKU_API_VERSION ]]; then
|
||||||
|
echo "$HELP"
|
||||||
|
else
|
||||||
|
cat && echo "$HELP"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user