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

Function printVersion

internal/cmd/helm-operator/run/cmd.go:56–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54var log = logf.Log.WithName("cmd")
55
56func printVersion() {
57 version := sdkVersion.GitVersion
58 if version == "unknown" {
59 version = sdkVersion.Version
60 }
61 log.Info("Version",
62 "Go Version", runtime.Version(),
63 "GOOS", runtime.GOOS,
64 "GOARCH", runtime.GOARCH,
65 "helm-operator", version,
66 "commit", sdkVersion.GitCommit)
67}
68
69func NewCmd() *cobra.Command {
70 f := &flags.Flags{}

Callers 1

runFunction · 0.85

Calls 1

VersionMethod · 0.45

Tested by

no test coverage detected