chore: properly name functions

This commit is contained in:
Jose Diaz-Gonzalez committed 2017-02-20 22:44:51 -07:00
1 parent ec2e2bc4cc
commit 48653e5663
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
case "$1" in case "$1" in
help | proxy:help) help | proxy:help)
proxy_vhosts_help_cmd "$@" proxy_help_cmd "$@"
;; ;;
*) *)
Regular → Executable
+4 -4
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
proxy_vhosts_help_content_func() { proxy_help_content_func() {
declare desc="return proxy plugin help content" declare desc="return proxy plugin help content"
cat<<help_content cat<<help_content
proxy <app>, [DEPRECATED] Show proxy settings for app proxy <app>, [DEPRECATED] Show proxy settings for app
@@ -16,16 +16,16 @@ proxy_vhosts_help_content_func() {
help_content help_content
} }
proxy_vhosts_help_cmd() { proxy_help_cmd() {
if [[ $1 = "proxy:help" ]] ; then if [[ $1 = "proxy:help" ]] ; then
echo -e 'Usage: dokku proxy[:COMMAND]' echo -e 'Usage: dokku proxy[:COMMAND]'
echo '' echo ''
echo 'Manage the proxy used by dokku on a per app.' echo 'Manage the proxy used by dokku on a per app.'
echo '' echo ''
echo 'Additional commands:' echo 'Additional commands:'
proxy_vhosts_help_content_func | sort | column -c2 -t -s, proxy_help_content_func | sort | column -c2 -t -s,
elif [[ $(ps -o command= $PPID) == *"--all"* ]]; then elif [[ $(ps -o command= $PPID) == *"--all"* ]]; then
proxy_vhosts_help_content_func proxy_help_content_func
else else
cat<<help_desc cat<<help_desc
proxy, Manage the proxy used by dokku on a per app proxy, Manage the proxy used by dokku on a per app