feat: allow triggering the full report for all apps via --all flag

This commit is contained in:
Jose Diaz-Gonzalez
2018-12-26 23:03:00 -05:00
parent f5bb99c145
commit e838fe7b96

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
}