github.com/kunnos/engine@v1.13.1/cli/command/network/cmd.go (about) 1 package network 2 3 import ( 4 "github.com/spf13/cobra" 5 6 "github.com/docker/docker/cli" 7 "github.com/docker/docker/cli/command" 8 ) 9 10 // NewNetworkCommand returns a cobra command for `network` subcommands 11 func NewNetworkCommand(dockerCli *command.DockerCli) *cobra.Command { 12 cmd := &cobra.Command{ 13 Use: "network", 14 Short: "Manage networks", 15 Args: cli.NoArgs, 16 RunE: dockerCli.ShowHelp, 17 } 18 cmd.AddCommand( 19 newConnectCommand(dockerCli), 20 newCreateCommand(dockerCli), 21 newDisconnectCommand(dockerCli), 22 newInspectCommand(dockerCli), 23 newListCommand(dockerCli), 24 newRemoveCommand(dockerCli), 25 NewPruneCommand(dockerCli), 26 ) 27 return cmd 28 }