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
@@ -6,10 +6,12 @@ source "$PLUGIN_AVAILABLE_PATH/proxy/functions"
|
||||
|
||||
cmd-proxy-ports-add() {
|
||||
declare desc="add proxy port mappings to an app"
|
||||
local cmd="proxy:add"
|
||||
local APP="$2"
|
||||
declare cmd="proxy:add"
|
||||
[[ "$1" == "$cmd" ]] && shift 1
|
||||
declare APP="$1"
|
||||
|
||||
verify_app_name "$APP"
|
||||
shift 2
|
||||
shift 1
|
||||
|
||||
add_proxy_ports "$APP" "$@"
|
||||
plugn trigger post-proxy-ports-update "$APP" "add"
|
||||
|
||||
Reference in new issue
Block a user