fix: add trace:on and trace:off

Closes #3553
This commit is contained in:
Jose Diaz-Gonzalez
2019-05-16 18:24:37 -04:00
parent c786b9e45e
commit 3fb8a576a0
9 changed files with 123 additions and 27 deletions

16
plugins/trace/commands Executable file
View File

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