refactor: unify command declaration across codebase
This commit is contained in:
1 parent
b0abeb49dd
commit
e67b96780d
108 files changed
+475
-315
No files matched your search
@@ -7,10 +7,11 @@ source "$PLUGIN_AVAILABLE_PATH/config/functions"
|
||||
|
||||
cmd-proxy-ports() {
|
||||
declare desc="cmd wrapper to list proxy port mappings for an app"
|
||||
local cmd="proxy:ports"
|
||||
local APP="$2"
|
||||
verify_app_name "$APP"
|
||||
declare cmd="proxy:ports"
|
||||
[[ "$1" == "$cmd" ]] && shift 1
|
||||
declare APP="$1"
|
||||
|
||||
verify_app_name "$APP"
|
||||
list_app_proxy_ports "$APP"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user