feat: add ability to scope retire call to a single app

Also cleanup the log output a bit for the ps:retire command.
This commit is contained in:
Jose Diaz-Gonzalez
2021-08-08 03:04:25 -04:00
parent 7a564f3185
commit 9e18736475
5 changed files with 32 additions and 14 deletions

View File

@@ -56,7 +56,8 @@ func main() {
case "retire":
args := flag.NewFlagSet("ps:retire", flag.ExitOnError)
args.Parse(os.Args[2:])
err = ps.CommandRetire()
appName := args.Arg(0)
err = ps.CommandRetire(appName)
case "scale":
args := flag.NewFlagSet("ps:scale", flag.ExitOnError)
skipDeploy := args.Bool("skip-deploy", false, "--skip-deploy: skip deploy of the app")