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 committed 2020-02-09 22:41:39 -05:00
1 parent deea791e58
commit 1cb586b2e7
134 files changed
+246 -245

No files matched your search

@@ -3,7 +3,7 @@ set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
dokku_cleanup_cmd() {
cmd-cleanup() {
declare desc="cleans up old deployment cruft"
declare cmd="cleanup"
[[ "$1" == "$cmd" ]] && shift 1
@@ -16,4 +16,4 @@ dokku_cleanup_cmd() {
docker_cleanup "$APP" "true"
}
dokku_cleanup_cmd "$@"
cmd-cleanup "$@"
+1 -1
View File
@@ -4,4 +4,4 @@ set -eo pipefail
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
shift 1
dokku_deploy_cmd "$@"
cmd-deploy "$@"
+2 -2
View File
@@ -3,7 +3,7 @@ set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
dokku_report_cmd() {
cmd-report() {
declare desc="reports dokku vitals for troubleshooting"
local cmd="report"
declare APP="$2"
@@ -31,4 +31,4 @@ dokku_report_cmd() {
fi
}
dokku_report_cmd "$@"
cmd-report "$@"
+2 -2
View File
@@ -4,7 +4,7 @@ set -eo pipefail
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/config/functions"
dokku_run_cmd() {
cmd-run() {
declare desc="runs command in container based on app image"
declare cmd="run" APP=""
shift
@@ -40,4 +40,4 @@ dokku_run_cmd() {
plugn trigger scheduler-run "$DOKKU_SCHEDULER" "$APP" "${#RUN_ENV[@]}" "${RUN_ENV[@]}" "$@"
}
dokku_run_cmd "$@"
cmd-run "$@"
+2 -2
View File
@@ -3,11 +3,11 @@ set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
dokku_urls_cmd() {
cmd-urls() {
[[ -z $2 ]] && dokku_log_fail "Please specify an app to run the command on"
local APP="$2"
get_app_urls "$@"
}
dokku_urls_cmd "$@"
cmd-urls "$@"