mirror of
https://github.com/containers/podman.git
synced 2025-05-27 20:47:05 +08:00

Add more default options parsing Switch to using --time as opposed to --timeout to better match Docker. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
28 lines
660 B
Go
28 lines
660 B
Go
package pods
|
|
|
|
import (
|
|
"github.com/containers/libpod/cmd/podman/registry"
|
|
"github.com/containers/libpod/pkg/domain/entities"
|
|
"github.com/containers/libpod/pkg/util"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
// Command: podman _pod_
|
|
podCmd = &cobra.Command{
|
|
Use: "pod",
|
|
Short: "Manage pods",
|
|
Long: "Manage pods",
|
|
TraverseChildren: true,
|
|
RunE: registry.SubCommandExists,
|
|
}
|
|
containerConfig = util.DefaultContainerConfig()
|
|
)
|
|
|
|
func init() {
|
|
registry.Commands = append(registry.Commands, registry.CliCommand{
|
|
Mode: []entities.EngineMode{entities.ABIMode, entities.TunnelMode},
|
|
Command: podCmd,
|
|
})
|
|
}
|