refactor: move run command to it's own plugin

This commit is contained in:
Jose Diaz-Gonzalez
2021-07-27 01:37:51 -04:00
parent bd3f753d85
commit dbc3d82017
11 changed files with 113 additions and 33 deletions

16
plugins/run/commands Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
[[ " help run:help " == *" $1 "* ]] || exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
source "$PLUGIN_AVAILABLE_PATH/run/help-functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
case "$1" in
help | run:help)
cmd-run-help "$@"
;;
*)
exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
;;
esac