diff options
Diffstat (limited to 'cmd/podman/play.go')
-rw-r--r-- | cmd/podman/play.go | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/cmd/podman/play.go b/cmd/podman/play.go index 4e09b2689..495a1f170 100644 --- a/cmd/podman/play.go +++ b/cmd/podman/play.go @@ -1,23 +1,22 @@ package main import ( - "github.com/urfave/cli" + "github.com/containers/libpod/cmd/podman/cliconfig" + "github.com/spf13/cobra" ) var ( - playSubCommands = []cli.Command{ - playKubeCommand, - } - + playCommand cliconfig.PodmanCommand playDescription = "Play a pod and its containers from a structured file." - playCommand = cli.Command{ - Name: "play", - Usage: "Play a container or pod", - Description: playDescription, - ArgsUsage: "", - Subcommands: playSubCommands, - UseShortOptionHandling: true, - OnUsageError: usageErrorHandler, - Hidden: true, + _playCommand = &cobra.Command{ + Use: "play", + Short: "Play a pod", + Long: playDescription, } ) + +func init() { + playCommand.Command = _playCommand + playCommand.SetUsageTemplate(UsageTemplate()) + playCommand.AddCommand(getPlaySubCommands()...) +} |