refactor: standardize command naming

This standardization makes it somewhat easier to read stacktraces as the command names are all uniform, so it will be slightly easier to scan trace output.
This commit is contained in:
Jose Diaz-Gonzalez
2020-02-09 22:41:39 -05:00
parent deea791e58
commit 1cb586b2e7
134 changed files with 246 additions and 245 deletions

View File

@@ -6,7 +6,7 @@ set -eo pipefail
case "$1" in
help | checks:help)
checks_help_cmd "$@"
cmd-checks-help "$@"
;;
*)

View File

@@ -77,7 +77,7 @@ checks_help_content_func() {
help_content
}
checks_help_cmd() {
cmd-checks-help() {
if [[ $1 == "checks:help" ]]; then
echo -e 'Usage: dokku checks[:COMMAND]'
echo ''

View File

@@ -4,7 +4,7 @@ set -eo pipefail
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/checks/functions"
checks_main_cmd() {
cmd-checks-default() {
declare desc="displays app zero-downtime checks status"
local cmd="checks"
[[ "$1" == "$cmd" ]] && shift 1
@@ -26,4 +26,4 @@ checks_main_cmd() {
done
}
checks_main_cmd "$@"
cmd-checks-default "$@"

View File

@@ -4,7 +4,7 @@ set -eo pipefail
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/checks/functions"
checks_disable_cmd() {
cmd-checks-disable() {
declare desc="disable zero-downtime checks for app/proctypes"
local cmd="checks:disable"
[[ "$1" == "$cmd" ]] && shift 1
@@ -43,4 +43,4 @@ checks_disable_cmd() {
fi
}
checks_disable_cmd "$@"
cmd-checks-disable "$@"

View File

@@ -4,7 +4,7 @@ set -eo pipefail
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/checks/functions"
checks_enable_cmd() {
cmd-checks-enable() {
declare desc="enable zero-downtime checks for app/proctypes"
local cmd="checks:enable"
[[ "$1" == "$cmd" ]] && shift 1
@@ -42,4 +42,4 @@ checks_enable_cmd() {
fi
}
checks_enable_cmd "$@"
cmd-checks-enable "$@"

View File

@@ -67,7 +67,7 @@ check_process() {
plugn trigger check-deploy "$APP" "$CONTAINER_ID" "$PROC_TYPE" "$PORT" "$IP"
}
checks_run_cmd() {
cmd-checks-run() {
declare desc="run zero-downtime checks for app/proctypes"
local cmd="checks:run"
[[ "$1" == "$cmd" ]] && shift 1
@@ -94,4 +94,4 @@ checks_run_cmd() {
fi
}
checks_run_cmd "$@"
cmd-checks-run "$@"

View File

@@ -4,7 +4,7 @@ set -eo pipefail
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/checks/functions"
checks_skip_cmd() {
cmd-checks-skip() {
declare desc="skip zero-downtime checks for app/proctypes"
local cmd="checks:skip"
[[ "$1" == "$cmd" ]] && shift 1
@@ -43,4 +43,4 @@ checks_skip_cmd() {
fi
}
checks_skip_cmd "$@"
cmd-checks-skip "$@"