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

@@ -14,7 +14,7 @@ docker_options_help_content_func() {
help_content
}
docker_options_help_cmd() {
cmd-docker-options-help() {
if [[ $1 == "docker-options:help" ]]; then
echo -e 'Usage: dokku docker-options[:COMMAND]'
echo ''
@@ -33,7 +33,7 @@ help_desc
case "$1" in
help | docker-options:help)
docker_options_help_cmd "$@"
cmd-docker-options-help "$@"
;;
*)

View File

@@ -4,7 +4,7 @@ set -eo pipefail
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/docker-options/functions"
docker_options_add_cmd() {
cmd-docker-options-add() {
declare desc="Add a docker option to application"
local cmd="docker-options:add"
@@ -16,4 +16,4 @@ docker_options_add_cmd() {
add_passed_docker_option passed_phases[@] "${passed_docker_option[@]}"
}
docker_options_add_cmd "$@"
cmd-docker-options-add "$@"

View File

@@ -4,7 +4,7 @@ set -eo pipefail
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/docker-options/functions"
docker_options_main_cmd() {
cmd-docker-options-default() {
declare desc="Display applications docker options"
local cmd="docker-options"
dokku_log_warn "Deprecated: Please use docker-options:report"
@@ -18,4 +18,4 @@ docker_options_main_cmd() {
fi
}
docker_options_main_cmd "$@"
cmd-docker-options-default "$@"

View File

@@ -4,7 +4,7 @@ set -eo pipefail
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/docker-options/functions"
docker_options_remove_cmd() {
cmd-docker-options-remove() {
declare desc="Remove a docker option from application"
local cmd="docker-options:remove"
@@ -16,4 +16,4 @@ docker_options_remove_cmd() {
remove_passed_docker_option passed_phases[@] "${passed_docker_option[@]}"
}
docker_options_remove_cmd "$@"
cmd-docker-options-remove "$@"