feat: expose version in frmd binary
This commit is contained in:
parent
bfd44f1774
commit
6d70fa153d
|
@ -5,6 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"forge.cadoles.com/wpetit/formidable/internal/command"
|
"forge.cadoles.com/wpetit/formidable/internal/command"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
@ -22,6 +23,7 @@ func main() {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
app := &cli.App{
|
app := &cli.App{
|
||||||
|
Version: strings.ToLower(fmt.Sprintf("%s (git-ref: %s, build-date: %s)", ProjectVersion, GitRef, BuildDate)),
|
||||||
Name: "frmd",
|
Name: "frmd",
|
||||||
Usage: "JSON Schema based cli forms",
|
Usage: "JSON Schema based cli forms",
|
||||||
Commands: command.Root(),
|
Commands: command.Root(),
|
||||||
|
|
Loading…
Reference in New Issue