From 15021d05c9ddbbd76758b73b35f3b03d8571ac57 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 21 Apr 2017 00:53:35 -0600 Subject: [PATCH] feat: allow quieter report output Users should have the option of suppressing headers, which are not always useful when interacting with dokku in a programmatic fashion. --- plugins/apps/subcommands/report | 2 +- plugins/certs/subcommands/report | 2 +- plugins/checks/subcommands/report | 2 +- plugins/docker-options/subcommands/report | 2 +- plugins/domains/subcommands/report | 2 +- plugins/proxy/subcommands/report | 2 +- plugins/ps/subcommands/report | 2 +- plugins/storage/subcommands/report | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/apps/subcommands/report b/plugins/apps/subcommands/report index 10e48e54c..946c93ea0 100755 --- a/plugins/apps/subcommands/report +++ b/plugins/apps/subcommands/report @@ -30,7 +30,7 @@ report_single_app() { ) if [[ -z "$INFO_FLAG" ]]; then - dokku_log_info2 "$APP" + dokku_log_info2_quiet "$APP app information" if (is_deployed "$APP"); then for flag in "${flag_map[@]}"; do key="$(echo "${flag#--}" | cut -f1 -d' ' | tr - ' ')" diff --git a/plugins/certs/subcommands/report b/plugins/certs/subcommands/report index 9d8c7d976..27bf32b7d 100755 --- a/plugins/certs/subcommands/report +++ b/plugins/certs/subcommands/report @@ -93,7 +93,7 @@ report_single_app() { ) if [[ -z "$INFO_FLAG" ]]; then - dokku_log_info2 "$APP ssl information" + dokku_log_info2_quiet "$APP ssl information" for flag in "${flag_map[@]}"; do key="$(echo "${flag#--}" | cut -f1 -d' ' | tr - ' ')" dokku_log_verbose "$(printf "%-20s %-25s" "${key^}" "${flag#*: }")" diff --git a/plugins/checks/subcommands/report b/plugins/checks/subcommands/report index 6c6a4fc02..4aae64f80 100755 --- a/plugins/checks/subcommands/report +++ b/plugins/checks/subcommands/report @@ -32,7 +32,7 @@ report_single_app() { ) if [[ -z "$INFO_FLAG" ]]; then - dokku_log_info2 "$APP checks information" + dokku_log_info2_quiet "$APP checks information" for flag in "${flag_map[@]}"; do key="$(echo "${flag#--}" | cut -f1 -d' ' | tr - ' ')" dokku_log_verbose "$(printf "%-20s %-25s" "${key^}" "${flag#*: }")" diff --git a/plugins/docker-options/subcommands/report b/plugins/docker-options/subcommands/report index e13618364..2a30dbe7c 100755 --- a/plugins/docker-options/subcommands/report +++ b/plugins/docker-options/subcommands/report @@ -25,7 +25,7 @@ report_single_app() { ) if [[ -z "$INFO_FLAG" ]]; then - dokku_log_info2 "$APP docker options information" + dokku_log_info2_quiet "$APP docker options information" for flag in "${flag_map[@]}"; do key="$(echo "${flag#--}" | cut -f1 -d' ' | tr - ' ')" dokku_log_verbose "$(printf "%-20s %-25s" "${key^}" "${flag#*: }")" diff --git a/plugins/domains/subcommands/report b/plugins/domains/subcommands/report index 2d43a44dd..7ccb01ecf 100755 --- a/plugins/domains/subcommands/report +++ b/plugins/domains/subcommands/report @@ -49,7 +49,7 @@ report_single_app() { ) if [[ -z "$INFO_FLAG" ]]; then - dokku_log_info2 "$APP domains information" + dokku_log_info2_quiet "$APP domains information" for flag in "${flag_map[@]}"; do key="$(echo "${flag#--}" | cut -f1 -d' ' | tr - ' ')" dokku_log_verbose "$(printf "%-20s %-25s" "${key^}" "${flag#*: }")" diff --git a/plugins/proxy/subcommands/report b/plugins/proxy/subcommands/report index 7247cd9cc..32f0f603c 100755 --- a/plugins/proxy/subcommands/report +++ b/plugins/proxy/subcommands/report @@ -27,7 +27,7 @@ report_single_app() { ) if [[ -z "$INFO_FLAG" ]]; then - dokku_log_info2 "$APP proxy information" + dokku_log_info2_quiet "$APP proxy information" for flag in "${flag_map[@]}"; do key="$(echo "${flag#--}" | cut -f1 -d' ' | tr - ' ')" dokku_log_verbose "$(printf "%-20s %-25s" "${key^}" "${flag#*: }")" diff --git a/plugins/ps/subcommands/report b/plugins/ps/subcommands/report index 77f952e6e..d8c61190a 100755 --- a/plugins/ps/subcommands/report +++ b/plugins/ps/subcommands/report @@ -46,7 +46,7 @@ report_single_app() { ) if [[ -z "$INFO_FLAG" ]]; then - dokku_log_info2 "$APP" + dokku_log_info2_quiet "$APP process information" for flag in "${flag_map[@]}"; do key="$(echo "${flag#--}" | cut -f1 -d' ' | tr - ' ')" dokku_log_verbose "$(printf "%-20s %-25s" "${key^}" "${flag#*: }")" diff --git a/plugins/storage/subcommands/report b/plugins/storage/subcommands/report index 482e01600..445ffec4a 100755 --- a/plugins/storage/subcommands/report +++ b/plugins/storage/subcommands/report @@ -25,7 +25,7 @@ report_single_app() { ) if [[ -z "$INFO_FLAG" ]]; then - dokku_log_info2 "$APP storage information" + dokku_log_info2_quiet "$APP storage information" for flag in "${flag_map[@]}"; do key="$(echo "${flag#--}" | cut -f1 -d' ' | tr - ' ')" dokku_log_verbose "$(printf "%-20s %-25s" "${key^}" "${flag#*: }")"