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

Function NewCmd

internal/cmd/plugin/report/cmd.go:29–40  ·  view source on GitHub ↗

NewCmd creates the new "report" command

()

Source from the content-addressed store, hash-verified

27
28// NewCmd creates the new "report" command
29func NewCmd() *cobra.Command {
30 reportCmd := &cobra.Command{
31 Use: "report operator/cluster",
32 Short: "Report on the operator or a cluster for troubleshooting",
33 GroupID: plugin.GroupIDTroubleshooting,
34 }
35
36 reportCmd.AddCommand(operatorCmd())
37 reportCmd.AddCommand(clusterCmd())
38
39 return reportCmd
40}

Callers 1

mainFunction · 0.92

Calls 2

operatorCmdFunction · 0.85
clusterCmdFunction · 0.70

Tested by

no test coverage detected