summaryrefslogtreecommitdiff
path: root/cmd/podman/play.go
blob: 2a0c41ef6ff9cb139c6d97bd68ef5d7ae3947d54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package main

import (
	"github.com/containers/libpod/cmd/podman/cliconfig"
	"github.com/spf13/cobra"
)

var (
	playCommand     cliconfig.PodmanCommand
	playDescription = "Play a pod and its containers from a structured file."
	_playCommand    = &cobra.Command{
		Use:   "play",
		Short: "Play a pod",
		Long:  playDescription,
	}
)

func init() {
	playCommand.Command = _playCommand
	playCommand.SetHelpTemplate(HelpTemplate())
	playCommand.SetUsageTemplate(UsageTemplate())
	playCommand.AddCommand(getPlaySubCommands()...)
}