Fix command listing and format
This commit is contained in:
parent
5d10082fc5
commit
bdc47d4357
13
commands
13
commands
@ -1,24 +1,27 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
[[ " help ansible-playbook:help " == *" $1 "* ]] || exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
|
[[ " help ansible:help " == *" $1 "* ]] || exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
|
||||||
|
|
||||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
||||||
help | ansible-playbook:help | ansible-playbook)
|
help | ansible:help)
|
||||||
help_content_func() {
|
help_content_func() {
|
||||||
|
#shellcheck disable=SC2034
|
||||||
declare desc="return ansible-playbook plugin help content"
|
declare desc="return ansible-playbook plugin help content"
|
||||||
cat<<help_content
|
cat<<help_content
|
||||||
ansible-playbook:add-vault-password, Insert new vault password for encrypt/decrypt of passwords
|
ansible:add-vault-password, Insert new vault password for encrypt/decrypt of passwords
|
||||||
help_content
|
help_content
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ $1 = "ansible-playbook:help" ]]; then
|
if [[ $1 = "ansible:help" ]]; then
|
||||||
echo -e 'Usage: dokku ansible-playbook[:COMMAND]'
|
echo -e 'Usage: dokku ansible[:COMMAND]'
|
||||||
echo ''
|
echo ''
|
||||||
echo 'Run ansible playbooks during deployment'
|
echo 'Run ansible playbooks during deployment'
|
||||||
echo ''
|
echo ''
|
||||||
|
echo 'Commands:'
|
||||||
|
help_content_func | sort | column -c2 -t -s,
|
||||||
elif [[ $(ps -o command= $PPID) == *"--all"* ]]; then
|
elif [[ $(ps -o command= $PPID) == *"--all"* ]]; then
|
||||||
help_content_func
|
help_content_func
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user