chore: unify with other plugins

This commit is contained in:
Jose Diaz-Gonzalez
2019-03-19 15:00:33 -04:00
parent 6dedbfba45
commit db9ff186a2
11 changed files with 49 additions and 24 deletions

View File

@@ -16,7 +16,7 @@ service-clone-cmd() {
#F -r|--root-password PASSWORD, override the root-level service password
declare desc="create container <new-name> then copy data from <name> into <new-name>"
local cmd="$PLUGIN_COMMAND_PREFIX:clone" argv=("$@"); [[ ${argv[0]} == "$cmd" ]] && shift 1
declare SERVICE="$1" NEW_SERVICE="$2" CLONE_FLAGS_LIST="${@:3}"
declare SERVICE="$1" NEW_SERVICE="$2" CLONE_FLAGS_LIST=("${@:3}")
is_implemented_command "$cmd" || dokku_log_fail "Not yet implemented"
[[ -z "$SERVICE" ]] && dokku_log_fail "Please specify a valid name for the service"