refactor: split out label subcommands into distinct commands
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
[[ " haproxy:help help " == *" $1 "* ]] || exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
|
||||
source "$PLUGIN_AVAILABLE_PATH/haproxy-vhosts/help-functions"
|
||||
source "$PLUGIN_AVAILABLE_PATH/haproxy-vhosts/command-functions"
|
||||
set -eo pipefail
|
||||
[[ $DOKKU_TRACE ]] && set -x
|
||||
|
||||
@@ -9,6 +10,18 @@ case "$1" in
|
||||
cmd-haproxy-help "$@"
|
||||
;;
|
||||
|
||||
haproxy:label:add)
|
||||
cmd-haproxy-label-add "$@"
|
||||
;;
|
||||
|
||||
haproxy:label:remove)
|
||||
cmd-haproxy-label-remove "$@"
|
||||
;;
|
||||
|
||||
haproxy:label:show)
|
||||
cmd-haproxy-label-show "$@"
|
||||
;;
|
||||
|
||||
*)
|
||||
exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user