include snapshot date in version

This commit is contained in:
rsteube 2024-10-24 20:37:13 +02:00
parent 17e73abd7d
commit de74b4c19f

View File

@ -1,11 +1,18 @@
package main
import (
"fmt"
"strings"
"github.com/carapace-sh/carapace-bin/cmd/carapace/cmd"
)
var date string
var version = "develop"
func main() {
if strings.HasSuffix(version, "-next") {
version += fmt.Sprintf(" (%v)", date)
}
cmd.Execute(version)
}