aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/network.go
blob: 83a5e71ab0e118ec4ea35ae8d72db85028cddb28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//+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)
}