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

Function NewCmd

internal/cmd/plugin/logs/cmd.go:30–41  ·  view source on GitHub ↗

NewCmd creates the new "logs" command

()

Source from the content-addressed store, hash-verified

28
29// NewCmd creates the new "logs" command
30func NewCmd() *cobra.Command {
31 logsCmd := &cobra.Command{
32 Use: "logs",
33 Short: "Logging utilities",
34 GroupID: plugin.GroupIDTroubleshooting,
35 }
36
37 logsCmd.AddCommand(clusterCmd())
38 logsCmd.AddCommand(pretty.NewCmd())
39
40 return logsCmd
41}

Callers 2

mainFunction · 0.92
cmd_test.goFile · 0.70

Calls 2

NewCmdFunction · 0.92
clusterCmdFunction · 0.70

Tested by

no test coverage detected