Skip to content

Commit

Permalink
Merge pull request #306 from carapace-sh/snapshot-commit
Browse files Browse the repository at this point in the history
include commit in snapshot
  • Loading branch information
rsteube authored Oct 24, 2024
2 parents fac7237 + 567672a commit 89d8dfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/carapace-spec/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"github.com/carapace-sh/carapace-spec/cmd/carapace-spec/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 89d8dfd

Please sign in to comment.