blob: 196556bc558fd4a3e4d06fb9e0d0b8fdcc1b4ec5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
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,
RunE: commandRunE(),
}
// Commands that are universally implemented
generateCommands = []*cobra.Command{
_containerKubeCommand,
}
)
func init() {
// Systemd-service generation is not supported for remote-clients.
if !remoteclient {
generateCommands = append(generateCommands, _containerSystemdCommand)
}
generateCommand.Command = _generateCommand
generateCommand.AddCommand(generateCommands...)
generateCommand.SetUsageTemplate(UsageTemplate())
}
|