chore: remove all deprecated commands

This change removes all deprecated commands. In many cases, users have been warned for a number of releases before the commands have been removed. All commands that were removed have existing alternatives.
This commit is contained in:
Jose Diaz-Gonzalez
2020-02-10 05:04:19 -05:00
parent 0c388615cc
commit 848373def5
37 changed files with 292 additions and 415 deletions

View File

@@ -27,7 +27,6 @@ help_desc
fn-help-content() {
declare desc="return help content"
cat <<help_content
trace, [DEPRECATED] Enables/Disables trace mode
trace:on, Enable trace mode
trace:off, Disable trace mode
help_content

View File

@@ -1,30 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/trace/help-functions"
cmd-trace-default() {
declare desc="enables/disables trace mode"
declare cmd="trace"
[[ "$1" == "$cmd" ]] && shift 1
declare ARGUMENT="$1"
[[ -d $DOKKU_ROOT/.dokkurc ]] || mkdir -p "$DOKKU_ROOT/.dokkurc"
[[ "$ARGUMENT" == "on" ]] || [[ "$ARGUMENT" == "off" ]] || {
dokku_log_fail "Valid trace options are [on/off]"
}
dokku_log_warn "Deprecated: Please use trace:on or trace:off"
if [[ "$ARGUMENT" == "on" ]]; then
dokku_log_info1 "Enabling trace mode"
echo "export DOKKU_TRACE=1" >"$DOKKU_ROOT/.dokkurc/DOKKU_TRACE"
fi
if [[ "$ARGUMENT" == "off" ]]; then
dokku_log_info1 "Disabling trace mode"
rm -f "$DOKKU_ROOT/.dokkurc/DOKKU_TRACE"
fi
}
cmd-trace-default "$@"
cmd-trace-help "trace:help"