Skip to content

Commit

Permalink
add version to help text
Browse files Browse the repository at this point in the history
  • Loading branch information
tnyeanderson committed Jan 18, 2023
1 parent ce01509 commit 6391533
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions help.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"os"
)

var usage = `
timplit is a dirt simple CLI for golang templates
var usage = `timplit %s
A dirt simple CLI for golang templates
USAGE
Expand Down Expand Up @@ -46,8 +47,9 @@ CAVEATS
Will be interpreted by the template as:
{"items": [1, 2, 3]}
`

func help() {
fmt.Fprintln(os.Stderr, usage)
fmt.Fprintf(os.Stderr, usage, version)
}
1 change: 1 addition & 0 deletions timplit.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
)

const (
version = "v0.0.3"
templateName = "timplit"
)

Expand Down

0 comments on commit 6391533

Please sign in to comment.