feat: allow returning an unfiltered list of users

This is useful for upgrades or commands that _must_ perform against all apps.
This commit is contained in:
Jose Diaz-Gonzalez
2022-05-15 15:33:19 -04:00
parent b1223cd6cc
commit f87cd22340
5 changed files with 42 additions and 5 deletions

View File

@@ -17,7 +17,8 @@ has_tty() {
dokku_apps() {
declare desc="prints list of all local apps"
local INSTALLED_APPS="$(plugn trigger app-list)"
declare FILTER="$1"
local INSTALLED_APPS="$(plugn trigger app-list "$FILTER")"
if [[ -z "$INSTALLED_APPS" ]]; then
dokku_log_fail "You haven't deployed any applications yet"
fi