From de74b4c19fb4287076f3a57aac9d654df48b3c99 Mon Sep 17 00:00:00 2001 From: rsteube Date: Thu, 24 Oct 2024 20:37:13 +0200 Subject: [PATCH] include snapshot date in version --- cmd/carapace/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/carapace/main.go b/cmd/carapace/main.go index 61365587ae..fdd83d1bdc 100644 --- a/cmd/carapace/main.go +++ b/cmd/carapace/main.go @@ -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) }