fix: add --global flag to ps:set

Closes #6755
This commit is contained in:
Jose Diaz-Gonzalez
2024-03-28 21:16:04 -04:00
parent 0a1f787310
commit 2516c79264
2 changed files with 54 additions and 0 deletions

View File

@@ -68,10 +68,16 @@ func main() {
err = ps.CommandScale(appName, *skipDeploy, processTuples)
case "set":
args := flag.NewFlagSet("ps:set", flag.ExitOnError)
global := args.Bool("global", false, "--global: set a global property")
args.Parse(os.Args[2:])
appName := args.Arg(0)
property := args.Arg(1)
value := args.Arg(2)
if *global {
appName = "--global"
property = args.Arg(0)
value = args.Arg(1)
}
err = ps.CommandSet(appName, property, value)
case "start":
args := flag.NewFlagSet("ps:start", flag.ExitOnError)