Skip to content

Commit

Permalink
Merge pull request #214 from carapace-sh/snapshot-version
Browse files Browse the repository at this point in the history
include snaphot date in version
  • Loading branch information
rsteube authored Oct 24, 2024
2 parents 40dd2a9 + 118a149 commit 12b4679
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cmd/carapace-bridge/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
package main

import "github.com/carapace-sh/carapace-bridge/cmd/carapace-bridge/cmd"
import (
"fmt"
"strings"

"github.com/carapace-sh/carapace-bridge/cmd/carapace-bridge/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 12b4679

Please sign in to comment.