Skip to content

Commit

Permalink
Adds commit info to binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciro S. Costa committed Jul 3, 2018
1 parent 94254cf commit c945124
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ fmt:
test:
go test ./... -v

release: VERSION := $(shell cat ./VERSION)
release:
git tag -a $(VERSION) -m "Release" || true
git push origin $(VERSION)
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.1
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ import (

var (
version = "dev"
commit = "HEAD"
)

func main() {
app := cli.NewApp()

app.Version = version
app.Version = version + " - " + commit
app.Usage = "edit recorded asciinema casts"
app.Description = `asciinema-edit provides missing features from the "asciinema" tool
when it comes to editing a cast that has already been recorded.`
Expand Down

0 comments on commit c945124

Please sign in to comment.