Files
dokku/plugins/openresty-vhosts/commands
Jose Diaz-Gonzalez d212fd44c7 refactor: rename functions to be plural
They are plural for the scheduler-k3s plugin.
2025-11-16 18:12:28 -05:00

29 lines
681 B
Bash
Executable File

#!/usr/bin/env bash
[[ " openresty:help openresty:labels:add openresty:labels:remove openresty:labels: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:labels:add)
cmd-openresty-labels-add "$@"
;;
openresty:labels:remove)
cmd-openresty-labels-remove "$@"
;;
openresty:labels:show)
cmd-openresty-labels-show "$@"
;;
*)
exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
;;
esac