Skip to content

Commit

Permalink
Add version string
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk committed Oct 30, 2022
1 parent 9116fc5 commit e7d5697
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/codecrafters/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import (
"os"
)

var version string
var commit string

// Usage: codecrafters test
func main() {
flag.Usage = func() {
Expand All @@ -20,7 +23,7 @@ USAGE
COMMANDS
test: run tests on project in current directory
`, "0.0.1")
`, fmt.Sprintf("%s (%s)", version, commit))

}

Expand Down

0 comments on commit e7d5697

Please sign in to comment.