mirror of https://github.com/cjbassi/gotop.git
goreleaser now sets version during building
This commit is contained in:
parent
da6f6d28f4
commit
847b8022b2
|
@ -1,10 +1,7 @@
|
|||
make sure gotop builds and runs
|
||||
update version number in 'main.go' and 'scripts/download.sh'
|
||||
commit changes
|
||||
tag commit with latest version number
|
||||
tag commit with version number
|
||||
export GitHub token in shell
|
||||
run `sudo dockerd`
|
||||
run `goreleaser`
|
||||
run `rm -r dist`
|
||||
run `goreleaser --rm-dist`
|
||||
run `git push`
|
||||
update AUR package
|
||||
|
|
4
main.go
4
main.go
|
@ -15,7 +15,7 @@ import (
|
|||
"github.com/docopt/docopt-go"
|
||||
)
|
||||
|
||||
const VERSION = "1.2.15"
|
||||
var version = "updated by goreleaser"
|
||||
|
||||
var (
|
||||
termResized = make(chan bool, 1)
|
||||
|
@ -65,7 +65,7 @@ Colorschemes:
|
|||
monokai
|
||||
`
|
||||
|
||||
args, _ := docopt.ParseArgs(usage, os.Args[1:], VERSION)
|
||||
args, _ := docopt.ParseArgs(usage, os.Args[1:], version)
|
||||
|
||||
if val, _ := args["--color"]; val != nil {
|
||||
handleColorscheme(val.(string))
|
||||
|
|
Loading…
Reference in New Issue