Skip to content

Commit

Permalink
include commit in snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Oct 24, 2024
1 parent 8afa450 commit 13a4a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/carapace/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"github.com/carapace-sh/carapace-bin/cmd/carapace/cmd"
)

var date string
var commit, date string
var version = "develop"

func main() {
if strings.HasSuffix(version, "-next") {
version += fmt.Sprintf(" (%v)", date)
version += fmt.Sprintf(" (%v) [%v]", date, commit)
}
cmd.Execute(version)
}

0 comments on commit 13a4a8d

Please sign in to comment.