MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / NewCmdVersion

Function NewCmdVersion

pkg/cmd/version/version.go:10–22  ·  view source on GitHub ↗
(f factory.Factory)

Source from the content-addressed store, hash-verified

8)
9
10func NewCmdVersion(f factory.Factory) *cobra.Command {
11 cmd := &cobra.Command{
12 Use: "version",
13 Hidden: true,
14 Example: heredoc.Docf("%s version", constants.ExecutableName),
15 RunE: func(cmd *cobra.Command, args []string) error {
16 cmd.Println(f.BuildVersion())
17 return nil
18 },
19 }
20
21 return cmd
22}

Callers 1

NewCmdRootFunction · 0.92

Calls 1

BuildVersionMethod · 0.65

Tested by

no test coverage detected