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 | certs:help)
certs_help_cmd "$@"
cmd-certs-help "$@"
;;
*)

View File

@@ -87,7 +87,7 @@ certs_help_content_func() {
help_content
}
certs_help_cmd() {
cmd-certs-help() {
if [[ $1 == "certs:help" ]]; then
echo -e 'Usage: dokku certs[:COMMAND]'
echo ''
@@ -104,7 +104,7 @@ help_desc
fi
}
certs_info_cmd() {
cmd-certs-info() {
# This is here because it's used in both the info and the default
declare desc="prints SSL certificate info for app"
local cmd="certs:info"

View File

@@ -28,7 +28,7 @@ is_file_import() {
return 1
}
certs_set() {
cmd-certs-set() {
declare desc="imports an SSL cert/key combo either on STDIN via a tarball or from specified cert/key filenames"
local cmd="$1"
[[ -z $2 ]] && dokku_log_fail "Please specify an app to run the command on"
@@ -79,4 +79,4 @@ certs_set() {
plugn trigger post-domains-update "$APP"
}
certs_set "$@"
cmd-certs-set "$@"

View File

@@ -4,4 +4,4 @@ set -eo pipefail
source "$PLUGIN_AVAILABLE_PATH/certs/internal-functions"
dokku_log_warn "Deprecated: Please use certs:report"
certs_info_cmd "$@"
cmd-certs-info "$@"

View File

@@ -4,7 +4,7 @@ set -eo pipefail
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/domains/functions"
certs_generate_cmd() {
cmd-certs-generate() {
declare desc="generates a self-signed SSL certificate/key combo"
declare APP="$2" DOMAIN="$3"
local cmd="certs:generate"
@@ -37,4 +37,4 @@ certs_generate_cmd() {
fi
}
certs_generate_cmd "$@"
cmd-certs-generate "$@"

View File

@@ -4,4 +4,4 @@ set -eo pipefail
source "$PLUGIN_AVAILABLE_PATH/certs/internal-functions"
dokku_log_warn "Deprecated: Please use certs:report"
certs_info_cmd "$@"
cmd-certs-info "$@"

View File

@@ -3,7 +3,7 @@ set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
certs_remove_cmd() {
cmd-certs-remove() {
declare desc="removes SSL cert/key from specified app"
local cmd="certs:remove"
[[ -z $2 ]] && dokku_log_fail "Please specify an app to run the command on"
@@ -21,4 +21,4 @@ certs_remove_cmd() {
fi
}
certs_remove_cmd "$@"
cmd-certs-remove "$@"