refactor: allow specifying clearExisting when calling ps-set-scale

This commit is contained in:
Jose Diaz-Gonzalez
2021-08-01 17:53:57 -04:00
parent 7502cbd13d
commit a7593db0c3
4 changed files with 8 additions and 5 deletions

View File

@@ -86,7 +86,8 @@ func main() {
appName := flag.Arg(0)
appName, args := common.ShiftString(flag.Args())
skipDeploy, processTuples := common.ShiftString(args)
err = ps.TriggerPsSetScale(appName, common.ToBool(skipDeploy), processTuples)
clearExisting, processTuples := common.ShiftString(args)
err = ps.TriggerPsSetScale(appName, common.ToBool(skipDeploy), common.ToBool(clearExisting), processTuples)
case "report":
appName := flag.Arg(0)
err = ps.ReportSingleApp(appName, "", "")