Merge pull request #6779 from dokku/6755-ps-set-global

Add --global flag to ps:set
This commit is contained in:
Jose Diaz-Gonzalez
2024-03-28 22:42:26 -04:00
committed by GitHub
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)