Skip to content

Commit

Permalink
feat: version and add commit and date variables
Browse files Browse the repository at this point in the history
  • Loading branch information
fdemir committed Dec 9, 2023
1 parent d5f0ece commit bc368b3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ import (
"github.com/urfave/cli/v2"
)

var (
version = "dev"
commit = "none"
date = "unknown"
)

type Source struct {
data map[string]*[]interface{}
}
Expand Down Expand Up @@ -50,11 +56,13 @@ func serve(s *Source, opt *ServeOptions) {
}

func main() {

app := &cli.App{
Name: "havlu",
HelpName: "havlu",
Usage: "Get a full take mock REST API with zero coding.",
UsageText: "havlu [file] [global options]",
Version: version,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "port",
Expand Down

0 comments on commit bc368b3

Please sign in to comment.