Improving logging

This commit is contained in:
Luke Murphy 2020-03-22 00:21:04 +01:00
parent c611603eb5
commit be6a9a1a73
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,7 @@ help_content
}
if [[ $1 = "ansible:help" ]]; then
echo -e 'Usage: dokku ansible[:COMMAND]'
echo -e 'Usage: dokku ansible:COMMAND'
echo ''
echo 'Run ansible playbooks during deployment'
echo ''

View File

@ -5,7 +5,9 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
cmd-ansible-default() {
dokku_log_fail "Please use one of the specified commands, run dokku ansible:help"
declare desc="Run ansible playbooks during deployment"
local cmd="ansible"
dokku_log_fail "Missing command, please run 'dokku ansible:help'"
}
cmd-ansible-default "$@"