fix: add flag to list
This commit is contained in:
1 parent
72eb61d1fc
commit
c58cb02689
1 file changed
+4
@@ -10,6 +10,7 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
quiet := flag.Bool("quiet", false, "--quiet: set DOKKU_QUIET_OUTPUT=1")
|
quiet := flag.Bool("quiet", false, "--quiet: set DOKKU_QUIET_OUTPUT=1")
|
||||||
|
global := flag.Bool("global", false, "--global: Whether global or app-specific")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
cmd := flag.Arg(0)
|
cmd := flag.Arg(0)
|
||||||
|
|
||||||
@@ -22,6 +23,9 @@ func main() {
|
|||||||
case "docker-cleanup":
|
case "docker-cleanup":
|
||||||
appName := flag.Arg(1)
|
appName := flag.Arg(1)
|
||||||
force := common.ToBool(flag.Arg(2))
|
force := common.ToBool(flag.Arg(2))
|
||||||
|
if *global {
|
||||||
|
appName = "--global"
|
||||||
|
}
|
||||||
err = common.DockerCleanup(appName, force)
|
err = common.DockerCleanup(appName, force)
|
||||||
case "is-deployed":
|
case "is-deployed":
|
||||||
appName := flag.Arg(1)
|
appName := flag.Arg(1)
|
||||||
|
|||||||
Reference in new issue
Block a user