refactor: call golang version of docker cleanup from shell

This ensures there is only a single implementation.
This commit is contained in:
Jose Diaz-Gonzalez
2021-08-08 01:56:43 -04:00
parent 9f326b3f28
commit e1f1531d42
2 changed files with 5 additions and 46 deletions

View File

@@ -19,6 +19,10 @@ func main() {
var err error
switch cmd {
case "docker-cleanup":
appName := flag.Arg(1)
force := common.ToBool(flag.Arg(2))
err = common.DockerCleanup(appName, force)
case "is-deployed":
appName := flag.Arg(1)
if !common.IsDeployed(appName) {