From 71aa33be49a7d6413f1c79f83f166c70693a5db6 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 30 Jun 2022 21:40:58 +0530 Subject: printing GOOS and GOARCH with macli version --- cmd/version.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd/version.go') 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) }, } -- cgit v1.2.3