Files
dokku/plugins/openresty-vhosts/commands
2025-11-16 17:57:58 -05:00

29 lines
672 B
Bash
Executable File

#!/usr/bin/env bash
[[ " openresty:help openresty:label:add openresty:label:remove openresty:label:show help " == *" $1 "* ]] || exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
source "$PLUGIN_AVAILABLE_PATH/openresty-vhosts/help-functions"
source "$PLUGIN_AVAILABLE_PATH/openresty-vhosts/command-functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
case "$1" in
help | openresty:help)
cmd-openresty-help "$@"
;;
openresty:label:add)
cmd-openresty-label-add "$@"
;;
openresty:label:remove)
cmd-openresty-label-remove "$@"
;;
openresty:label:show)
cmd-openresty-label-show "$@"
;;
*)
exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
;;
esac