mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-14 11:37:53 +00:00
Added ID to default removed outdated imports slight refactor Test Network Headers added to network_test.go Signed-off-by: Parker Van Roy <pvanroy@redhat.com>
28 lines
656 B
Go
28 lines
656 B
Go
package network
|
|
|
|
import (
|
|
"github.com/containers/podman/v3/cmd/podman/registry"
|
|
"github.com/containers/podman/v3/cmd/podman/validate"
|
|
"github.com/containers/podman/v3/pkg/domain/entities"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
// Pull in configured json library
|
|
json = registry.JSONLibrary()
|
|
|
|
// Command: podman _network_
|
|
networkCmd = &cobra.Command{
|
|
Use: "network",
|
|
Short: "Manage networks",
|
|
Long: "Manage networks",
|
|
RunE: validate.SubCommandExists,
|
|
}
|
|
)
|
|
|
|
func init() {
|
|
registry.Commands = append(registry.Commands, registry.CliCommand{
|
|
Mode: []entities.EngineMode{entities.ABIMode, entities.TunnelMode},
|
|
Command: networkCmd,
|
|
})
|
|
}
|