feat: expose version in frmd binary

This commit is contained in:
wpetit 2022-08-01 11:36:39 +02:00
parent bfd44f1774
commit fdccc3f601
1 changed files with 2 additions and 0 deletions

View File

@ -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(),