refactor: add ability to skip deploys and fix process scaling

This commit is contained in:
Jose Diaz-Gonzalez
2020-11-18 01:23:36 -05:00
parent a8ccc7d2a7
commit 23ad4bb230
3 changed files with 98 additions and 60 deletions

View File

@@ -55,10 +55,11 @@ func main() {
err = ps.CommandRetire()
case "scale":
args := flag.NewFlagSet("ps:scale", flag.ExitOnError)
skipDeploy := args.Bool("skip-deploy", false, "--skip-deploy: skip deploy of the app")
args.Parse(os.Args[2:])
appName := args.Arg(0)
_, processTuples := common.ShiftString(args.Args())
err = ps.CommandScale(appName, processTuples)
err = ps.CommandScale(appName, *skipDeploy, processTuples)
case "set":
args := flag.NewFlagSet("ps:set", flag.ExitOnError)
args.Parse(os.Args[2:])