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:
1 parent
deea791e58
commit
1cb586b2e7
134 files changed
+246
-245
No files matched your search
@@ -4,11 +4,11 @@ set -eo pipefail
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/functions"
|
||||
|
||||
nginx_validate_cmd() {
|
||||
cmd-nginx-validate() {
|
||||
declare desc="validates and optionally cleans up invalid nginx configurations"
|
||||
declare cmd="nginx:validate" argv=("$@")
|
||||
[[ ${argv[0]} == "$cmd" ]] && shift 1
|
||||
validate_nginx "$@"
|
||||
}
|
||||
|
||||
nginx_validate_cmd "$@"
|
||||
cmd-nginx-validate "$@"
|
||||
Reference in new issue
Block a user