diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-18 17:28:03 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-18 17:28:03 +1000 |
commit | 6473e5ca3cb727d3f6f4cbe132495532a8bfbc0c (patch) | |
tree | d5be576379b9e4c252a6aab703d399ba0103d33c /main.go | |
parent | 896dda3adfcf9b04c57faaf5407e83494e869200 (diff) |
use runtime package to get GOOS and GOARCH
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -6,6 +6,7 @@ import ( "io/ioutil" "os" "path/filepath" + "runtime" "github.com/jesseduffield/lazygit/pkg/app" "github.com/jesseduffield/lazygit/pkg/config" @@ -15,9 +16,6 @@ var ( commit string version = "unversioned" date string - goos string - arch string - arm string debuggingFlag = flag.Bool("debug", false, "a boolean") versionFlag = flag.Bool("v", false, "Print the current version") @@ -46,7 +44,7 @@ func main() { version = fallbackVersion() } if *versionFlag { - fmt.Printf("commit=%s, build date=%s, version=%s, os=%s, arch=%s, arm=%s\n", commit, date, version, goos, arch, arm) + fmt.Printf("commit=%s, build date=%s, version=%s, os=%s, arch=%s\n", commit, date, version, runtime.GOOS, runtime.GOARCH) os.Exit(0) } appConfig, err := config.NewAppConfig("lazygit", version, commit, date, debuggingFlag) |