Merge pull request #7 from dokku/lg-help-output
Compatibility with dokku 0.3.x & 0.4.x for help output
This commit is contained in:
8
commands
8
commands
@@ -185,7 +185,7 @@ case "$1" in
|
||||
;;
|
||||
|
||||
help)
|
||||
cat && cat<<EOF
|
||||
HELP=$(cat<<EOF
|
||||
$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:destroy <name>, Delete the $PLUGIN_SERVICE service and stop its container if there are no links left
|
||||
@@ -204,6 +204,12 @@ case "$1" in
|
||||
$PLUGIN_COMMAND_PREFIX:start <name>, Start a previously stopped $PLUGIN_SERVICE service
|
||||
$PLUGIN_COMMAND_PREFIX:stop <name>, Stop a running $PLUGIN_SERVICE service
|
||||
EOF
|
||||
)
|
||||
if [[ -n $DOKKU_API_VERSION ]]; then
|
||||
echo "$HELP"
|
||||
else
|
||||
cat && echo "$HELP"
|
||||
fi
|
||||
;;
|
||||
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user