mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-25 17:57:54 +00:00
Also change generate cli calls to match other commands. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
22 lines
540 B
Go
22 lines
540 B
Go
package main
|
|
|
|
import (
|
|
"github.com/containers/libpod/cmd/podman/cliconfig"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
generateCommand cliconfig.PodmanCommand
|
|
generateDescription = "Generate structured data based for a containers and pods"
|
|
_generateCommand = &cobra.Command{
|
|
Use: "generate",
|
|
Short: "Generated structured data",
|
|
Long: generateDescription,
|
|
}
|
|
)
|
|
|
|
func init() {
|
|
generateCommand.Command = _generateCommand
|
|
generateCommand.AddCommand(getGenerateSubCommands()...)
|
|
generateCommand.SetUsageTemplate(UsageTemplate())
|
|
}
|