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

@@ -18,7 +18,12 @@ func main() {
var err error
switch trigger {
case "app-list":
err = common.TriggerAppList()
filtered := flag.Arg(0)
if filtered == "" {
filtered = "true"
}
filter := common.ToBool(filtered)
err = common.TriggerAppList(filter)
case "core-post-deploy":
appName := flag.Arg(0)
err = common.TriggerCorePostDeploy(appName)