feat: add support for specifying multiple networks on a given app
Closes #5314
This commit is contained in:
@@ -23,10 +23,10 @@ Additional commands:`
|
||||
network:exists <network>, Checks if a docker network exists
|
||||
network:info <network>, Outputs information about a docker network
|
||||
network:list, Lists all docker networks
|
||||
network:report [<app>] [<flag>], Displays a network report for one or more apps
|
||||
network:rebuild <app>, Rebuilds network settings for an app
|
||||
network:rebuildall, Rebuild network settings for all apps
|
||||
network:set <app> <property> (<value>), Set or clear a network property for an app
|
||||
network:report [<app>] [<flag>], Displays a network report for one or more apps
|
||||
network:set <app> <property> (<value>...), Set or clear a network property for an app
|
||||
`
|
||||
)
|
||||
|
||||
|
||||
@@ -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