github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/cmd/podman/play.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/containers/libpod/cmd/podman/cliconfig"
     5  	"github.com/spf13/cobra"
     6  )
     7  
     8  var (
     9  	playCommand     cliconfig.PodmanCommand
    10  	playDescription = "Play a pod and its containers from a structured file."
    11  	_playCommand    = &cobra.Command{
    12  		Use:   "play",
    13  		Short: "Play a pod",
    14  		Long:  playDescription,
    15  		RunE:  commandRunE(),
    16  	}
    17  )
    18  
    19  func init() {
    20  	playCommand.Command = _playCommand
    21  	playCommand.SetHelpTemplate(HelpTemplate())
    22  	playCommand.SetUsageTemplate(UsageTemplate())
    23  	playCommand.AddCommand(getPlaySubCommands()...)
    24  }