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:
1 parent
b1223cd6cc
commit
f87cd22340
5 files changed
+42
-5
No files matched your search
@@ -6,8 +6,14 @@ import (
|
||||
)
|
||||
|
||||
// TriggerAppList outputs each app name to stdout on a newline
|
||||
func TriggerAppList() error {
|
||||
apps, _ := DokkuApps()
|
||||
func TriggerAppList(filtered bool) error {
|
||||
var apps []string
|
||||
if filtered {
|
||||
apps, _ = DokkuApps()
|
||||
} else {
|
||||
apps, _ = UnfilteredDokkuApps()
|
||||
}
|
||||
|
||||
for _, app := range apps {
|
||||
Log(app)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user