aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-30 21:40:58 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-30 21:40:58 +0530
commit71aa33be49a7d6413f1c79f83f166c70693a5db6 (patch)
tree365b3afd1e9185bdfbecc3339a35485972174621 /cmd
parente96531d4f83129d9ded98d3dbb76eeef6fb679e9 (diff)
printing GOOS and GOARCH with macli version
Diffstat (limited to 'cmd')
-rw-r--r--cmd/version.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/version.go b/cmd/version.go
index f5ca999..fa574f1 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -20,17 +20,18 @@ package cmd
import (
"fmt"
+ "runtime"
"github.com/spf13/cobra"
)
-var version string = "v1.4.2"
+var version string = "v1.4.3"
var versionCmd = &cobra.Command {
Use: "version",
Short: "Shows current version",
Long: "Shows current version of macli",
Run: func(cmd *cobra.Command, args []string) {
- fmt.Println("macli", version)
+ fmt.Println("macli version", version, runtime.GOOS + "/" + runtime.GOARCH)
},
}