From c58cb02689b743a5b8adf6397b032ec2da0f1485 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 8 Aug 2021 03:31:53 -0400 Subject: [PATCH] fix: add flag to list --- plugins/common/src/common/common.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/common/src/common/common.go b/plugins/common/src/common/common.go index 0a4275371..29eb5f207 100644 --- a/plugins/common/src/common/common.go +++ b/plugins/common/src/common/common.go @@ -10,6 +10,7 @@ import ( func main() { quiet := flag.Bool("quiet", false, "--quiet: set DOKKU_QUIET_OUTPUT=1") + global := flag.Bool("global", false, "--global: Whether global or app-specific") flag.Parse() cmd := flag.Arg(0) @@ -22,6 +23,9 @@ func main() { case "docker-cleanup": appName := flag.Arg(1) force := common.ToBool(flag.Arg(2)) + if *global { + appName = "--global" + } err = common.DockerCleanup(appName, force) case "is-deployed": appName := flag.Arg(1)