Skip to content

Commit 9ad51fe

Browse files
committed
adding version
1 parent ec6bb58 commit 9ad51fe

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cmd/root.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ import (
44
"github.com/spf13/cobra"
55
)
66

7+
var version = "0.96.0"
8+
79
var rootCmd = &cobra.Command{
8-
Use: "upify",
9-
Short: "Upify helps you quickly and easily deploy apps in the cloud",
10-
Long: `Upify is a platform and cloud agnostic CLI tool designed to simplify cloud deployments`,
10+
Use: "upify",
11+
Short: "Upify helps you quickly and easily deploy apps in the cloud",
12+
Long: `Upify is a platform and cloud agnostic CLI tool designed to simplify cloud deployments`,
13+
Version: version,
1114
}
1215

1316
func Execute() error {
17+
rootCmd.SetVersionTemplate("Upify version: {{.Version}}\n") // Customize the version output if needed
1418
return rootCmd.Execute()
1519
}

0 commit comments

Comments
 (0)