Skip to content

Commit

Permalink
Print version
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Callarisa committed Jul 28, 2022
1 parent 3b4c164 commit bbb83f6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/fitm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
cli "github.com/urfave/cli/v2"
)

var version = "master"

func assertErrorToNilf(message string, err error) {
if err != nil {
log.Fatalf(message, err)
Expand Down Expand Up @@ -247,6 +249,14 @@ func main() {
},
},
},
{
Name: "version",
Usage: "prints out tool version.",
Action: func(ctx *cli.Context) error {
fmt.Printf(version)
return nil
},
},
},
}

Expand Down

0 comments on commit bbb83f6

Please sign in to comment.