spiegel_podman/cmd/podman/network.go
baude 6220ef1488 inclusion of podman network
adding podman network and the subcommands inspect, list, and rm.  the
inspect subcommand displays the raw cni network configuration.  the list
subcommand displays a summary of the cni networks ala ps.  and the rm
subcommand removes a cni network.

Signed-off-by: baude <bbaude@redhat.com>
2019-08-15 12:49:12 -05:00

31 lines
704 B
Go

//+build !remoteclient
package main
import (
"github.com/containers/libpod/cmd/podman/cliconfig"
"github.com/spf13/cobra"
)
var networkcheckDescription = "Manage networks"
var networkcheckCommand = cliconfig.PodmanCommand{
Command: &cobra.Command{
Use: "network",
Short: "Manage Networks",
Long: networkcheckDescription,
RunE: commandRunE(),
},
}
// Commands that are universally implemented
var networkcheckCommands = []*cobra.Command{
_networkinspectCommand,
_networklistCommand,
_networkrmCommand,
}
func init() {
networkcheckCommand.AddCommand(networkcheckCommands...)
networkcheckCommand.SetUsageTemplate(UsageTemplate())
rootCmd.AddCommand(networkcheckCommand.Command)
}