diff --git a/.goreleaser.yml b/.goreleaser.yml index 27aaf3638..3184ff484 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -30,3 +30,5 @@ changelog: exclude: - '^docs:' - '^test:' +env_files: + github_token: ./github_token diff --git a/github_token b/github_token new file mode 100644 index 000000000..ad2b69c96 --- /dev/null +++ b/github_token @@ -0,0 +1 @@ +TnB8I+swjicHuGTXk3ncm1Aaa12eIJqWV/Lhcnbb01i39p6+fyn3vDMdWPcejt3R8gcJqv4wyP8UQVO9G1qkLppt6V/qAuY5x6nX0MgEa3t+8JLJnGYHZYsuIgan/ecAmeu5+6dgUhr9Oq6zQOEv/O88NsALzMlqnEQNXI8XSoScfhkiVDIp3zWov0vBizCdThnNgTx9zRpJVoqxmhWvgt+me2+fOhSx1Y+3ZA2gE7zq8IFAbxp36d0rsR5lKqmTuF+YsF9iQ7Ar+xCjbRunLsZx+VwGqGfpS/qS7EwsEqBI0vEO76eFJkwEsIzOvJiFNhBDUu3upquBFMT4uzxRxH3eV+J4mZtu29UDLdvKI5Q730Lk9AgmH4now+RmP08M0SEXJa+AnHeuBv2u1iU5bu+sI6CORVQzKQwOph9AABDjSZ54wrXIpYEeIW2sz8nx+hiG6QL1mqfM/l+55BR69u3vxKYMryQBxPuzhZCTOqqI4uahlb6GIUNZJ9vGZeIA9HFJq3ymW8cdrpYzhKf3Nx9jK+Yb81h5/AHq9iChXEC63VPCDXXGRllh2UYWNYCaAdtk+ekpLR8299e4CaEregy6g5U2S3/xrBKl87miu1uJ/fquXoxGdSU+JcmsmXZ26sGIU2TCYdNjSfIgpOyfMmB4JNtKHqWRHA9Fe42CRpA= diff --git a/gui.go b/gui.go index 5ae6ab134..b69cc24d8 100644 --- a/gui.go +++ b/gui.go @@ -161,7 +161,7 @@ func layout(g *gocui.Gui) error { v.FgColor = gocui.ColorWhite } - if v, err := g.SetView("options", -1, optionsTop, width-len(Version)-2, optionsTop+2, 0); err != nil { + if v, err := g.SetView("options", -1, optionsTop, width-len(version)-2, optionsTop+2, 0); err != nil { if err != gocui.ErrUnknownView { return err } @@ -170,14 +170,14 @@ func layout(g *gocui.Gui) error { v.Frame = false } - if v, err := g.SetView("version", width-len(Version)-1, optionsTop, width, optionsTop+2, 0); err != nil { + if v, err := g.SetView("version", width-len(version)-1, optionsTop, width, optionsTop+2, 0); err != nil { if err != gocui.ErrUnknownView { return err } v.BgColor = gocui.ColorDefault v.FgColor = gocui.ColorGreen v.Frame = false - renderString(g, "version", Version) + renderString(g, "version", version) // these are only called once handleFileSelect(g, filesView) diff --git a/main.go b/main.go index dcffbd835..93be5824e 100644 --- a/main.go +++ b/main.go @@ -74,7 +74,7 @@ func main() { devLog("\n\n\n\n\n\n\n\n\n\n") flag.Parse() if *versionFlag { - fmt.Printf("rev=%s, build date=%s, version=%s", Rev, date, Version) + fmt.Printf("commit=%s, build date=%s, version=%s", commit, date, version) os.Exit(0) } verifyInGitRepo()