Skip to content

Commit c945124

Browse files
author
Ciro S. Costa
committed
Adds commit info to binary
1 parent 94254cf commit c945124

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ fmt:
77
test:
88
go test ./... -v
99

10+
release: VERSION := $(shell cat ./VERSION)
1011
release:
1112
git tag -a $(VERSION) -m "Release" || true
1213
git push origin $(VERSION)

VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.1

main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ import (
99

1010
var (
1111
version = "dev"
12+
commit = "HEAD"
1213
)
1314

1415
func main() {
1516
app := cli.NewApp()
1617

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

0 commit comments

Comments
 (0)