Merge pull request #3345 from dokku/report-all-flag

Allow triggering the full report for all apps via --all flag
This commit is contained in:
Jose Diaz-Gonzalez
2018-12-27 04:08:20 -05:00
committed by GitHub

View File

@@ -21,7 +21,11 @@ dokku_report_cmd() {
dokku_log_info1 "dokku plugins: "
dokku plugin:list | sed "s/^/ /"
if [[ -n "$APP" ]]; then
if [[ "$APP" == "--all" ]]; then
for app in $(dokku_apps); do
plugn trigger report "$app"
done
elif [[ -n "$APP" ]]; then
plugn trigger report "$APP"
fi
}