From 3931c16bd765a301e71f7918bd14427a519a0e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Mon, 26 Jul 2021 17:07:42 +0200 Subject: [PATCH] Provide version number at build time --- cmd/ghcs/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/ghcs/main.go b/cmd/ghcs/main.go index aee1b2aec..00e8be894 100644 --- a/cmd/ghcs/main.go +++ b/cmd/ghcs/main.go @@ -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() {