From 6d70fa153dea34396c18057995131ade0479406b Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 1 Aug 2022 11:36:39 +0200 Subject: [PATCH] feat: expose version in frmd binary --- cmd/frmd/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/frmd/main.go b/cmd/frmd/main.go index ab00904..d1b94fd 100644 --- a/cmd/frmd/main.go +++ b/cmd/frmd/main.go @@ -5,6 +5,7 @@ import ( "fmt" "os" "sort" + "strings" "forge.cadoles.com/wpetit/formidable/internal/command" "github.com/pkg/errors" @@ -22,6 +23,7 @@ func main() { ctx := context.Background() app := &cli.App{ + Version: strings.ToLower(fmt.Sprintf("%s (git-ref: %s, build-date: %s)", ProjectVersion, GitRef, BuildDate)), Name: "frmd", Usage: "JSON Schema based cli forms", Commands: command.Root(),