refactor: unify command declaration across codebase
This commit is contained in:
1 parent
b0abeb49dd
commit
e67b96780d
108 files changed
+475
-315
No files matched your search
@@ -7,10 +7,13 @@ source "$PLUGIN_AVAILABLE_PATH/ps/functions"
|
||||
|
||||
cmd-ps-restart-policy() {
|
||||
declare desc="shows the restart-policy for an app"
|
||||
local cmd="ps:restart-policy"
|
||||
declare cmd="ps:restart-policy"
|
||||
[[ "$1" == "$cmd" ]] && shift 1
|
||||
declare APP="$1"
|
||||
local passed_phases="deploy"
|
||||
[[ -z $2 ]] && dokku_log_fail "Please specify an app to run the command on"
|
||||
verify_app_name "$2" && local APP="$2"
|
||||
|
||||
[[ -z "$APP" ]] && dokku_log_fail "Please specify an app to run the command on"
|
||||
verify_app_name "$APP"
|
||||
|
||||
dokku_log_info2_quiet "$APP restart-policy:"
|
||||
get_restart_policies "$(get_phase_file_path "$passed_phases")"
|
||||
|
||||
Reference in new issue
Block a user