From 2d52ae2fb4bd512061e0e9baed9f3dd27abe92f7 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 10 Oct 2018 23:54:08 -0400 Subject: [PATCH] feat: allow removal of header from :list subcommand --- common-functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common-functions b/common-functions index c5d3d5d..21c89e7 100755 --- a/common-functions +++ b/common-functions @@ -440,7 +440,11 @@ service_list() { if [[ -z $SERVICES ]]; then dokku_log_warn "There are no $PLUGIN_SERVICE services" else - LIST="NAME,VERSION,STATUS,EXPOSED PORTS,LINKS\n" + LIST="" + if [[ -z "$DOKKU_QUIET_OUTPUT" ]]; then + LIST="NAME,VERSION,STATUS,EXPOSED PORTS,LINKS\n" + fi + for SERVICE in $SERVICES; do LIST+="$SERVICE,$(service_version "$SERVICE"),$(service_status "$SERVICE"),$(service_exposed_ports "$SERVICE"),$(service_linked_apps "$SERVICE")\n" done