feat: add support for specifying multiple networks on a given app
Closes #5314
This commit is contained in:
@@ -67,12 +67,14 @@ func main() {
|
||||
appName := args.Arg(0)
|
||||
property := args.Arg(1)
|
||||
value := args.Arg(2)
|
||||
values := common.VarArgs(args.Args(), 2)
|
||||
if *global {
|
||||
appName = "--global"
|
||||
property = args.Arg(0)
|
||||
value = args.Arg(1)
|
||||
values = common.VarArgs(args.Args(), 1)
|
||||
}
|
||||
err = network.CommandSet(appName, property, value)
|
||||
err = network.CommandSet(appName, property, value, values)
|
||||
default:
|
||||
err = fmt.Errorf("Invalid plugin subcommand call: %s", subcommand)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user