Provide version number at build time

This commit is contained in:
Mislav Marohnić 2021-07-26 17:07:42 +02:00
parent bba5ebec8b
commit 3931c16bd7

View file

@ -11,11 +11,13 @@ func main() {
Execute()
}
var Version = "DEV"
var rootCmd = &cobra.Command{
Use: "ghcs",
Short: "Unofficial GitHub Codespaces CLI.",
Long: "Unofficial CLI tool to manage and interact with GitHub Codespaces.",
Version: "0.7.1",
Version: Version,
}
func Execute() {