MCPcopy
hub / github.com/operator-framework/operator-sdk / NewCmd

Function NewCmd

internal/cmd/helm-operator/version/cmd.go:26–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24)
25
26func NewCmd() *cobra.Command {
27 versionCmd := &cobra.Command{
28 Use: "version",
29 Short: "Prints the version of operator-sdk",
30 Run: func(_ *cobra.Command, _ []string) {
31 run()
32 },
33 }
34 return versionCmd
35}
36
37func run() {
38 version := ver.GitVersion

Callers 2

mainFunction · 0.92
cmd_test.goFile · 0.70

Calls 1

runFunction · 0.70

Tested by

no test coverage detected