mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-04 06:37:50 +00:00
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>
31 lines
704 B
Go
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)
|
|
}
|