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

Function NewCmd

internal/cmd/versions/cmd.go:32–40  ·  view source on GitHub ↗

NewCmd is a cobra command printing build information

()

Source from the content-addressed store, hash-verified

30
31// NewCmd is a cobra command printing build information
32func NewCmd() *cobra.Command {
33 return &cobra.Command{
34 Use: "version",
35 Short: "Prints version, commit sha and date of the build",
36 Run: func(_ *cobra.Command, _ []string) {
37 fmt.Printf("Build: %+v\n", versions.Info)
38 },
39 }
40}

Callers 2

mainFunction · 0.92
mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected