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

Function NewCmd

internal/cmd/manager/instance/status/cmd.go:43–52  ·  view source on GitHub ↗

NewCmd create the "instance status" subcommand

()

Source from the content-addressed store, hash-verified

41
42// NewCmd create the "instance status" subcommand
43func NewCmd() *cobra.Command {
44 cmd := &cobra.Command{
45 Use: "status",
46 RunE: func(cmd *cobra.Command, _ []string) error {
47 return statusSubCommand(cmd.Context())
48 },
49 }
50
51 return cmd
52}
53
54func statusSubCommand(ctx context.Context) error {
55 contextLogger := log.FromContext(ctx)

Callers 1

NewCmdFunction · 0.92

Calls 1

statusSubCommandFunction · 0.85

Tested by

no test coverage detected