MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / NewCmd

Function NewCmd

internal/cmd/manager/show/cmd.go:30–40  ·  view source on GitHub ↗

NewCmd creates the new cobra command

()

Source from the content-addressed store, hash-verified

28
29// NewCmd creates the new cobra command
30func NewCmd() *cobra.Command {
31 cmd := cobra.Command{
32 Use: "show [cmd]",
33 Short: "Useful data printing subfeature",
34 SilenceErrors: true,
35 }
36
37 cmd.AddCommand(walarchivequeue.NewCmd())
38
39 return &cmd
40}

Callers 1

mainFunction · 0.92

Calls 1

NewCmdFunction · 0.92

Tested by

no test coverage detected