Skip to content

Commit

Permalink
Merge pull request #2568 from carapace-sh/snapshot-date
Browse files Browse the repository at this point in the history
include snapshot date in version
  • Loading branch information
rsteube authored Oct 24, 2024
2 parents 17e73ab + de74b4c commit 8afa450
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/carapace/main.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 8afa450

Please sign in to comment.