MCPcopy Index your code
hub / github.com/devspace-sh/devspace / NewVersionCmd

Function NewVersionCmd

cmd/version.go:10–19  ·  view source on GitHub ↗

NewVersionCmd returns the cobra command that outputs version

()

Source from the content-addressed store, hash-verified

8
9// NewVersionCmd returns the cobra command that outputs version
10func NewVersionCmd() *cobra.Command {
11 return &cobra.Command{
12 Use: "version",
13 Args: cobra.NoArgs,
14 Short: "Prints version of devspace",
15 Run: func(cobraCmd *cobra.Command, args []string) {
16 fmt.Println("DevSpace version : " + upgrade.GetVersion())
17 },
18 }
19}

Callers 1

BuildRootFunction · 0.70

Calls 1

GetVersionFunction · 0.92

Tested by

no test coverage detected