refactor: unify command declaration across codebase

This commit is contained in:
Jose Diaz-Gonzalez committed 2020-02-10 01:40:30 -05:00
1 parent b0abeb49dd
commit e67b96780d
108 files changed
+475 -315

No files matched your search

+4 -3
View File
@@ -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"
}