[enh] add versioning (semver)

pull/52/head v0.1.0
Adam Tauber 7 years ago
parent e73584b0d8
commit ce4d129702

@ -22,6 +22,8 @@ import (
"github.com/jroimartin/gocui"
)
const VERSION = "0.1.0"
var METHODS []string = []string{
http.MethodGet,
http.MethodPost,
@ -976,6 +978,10 @@ func help() {
Usage: wuzz [-H|--header=HEADER]... [-d|--data=POST_DATA] [-X|--request=METHOD] [-t|--timeout=MSECS] [URL]
Other command line options:
-h, --help Show this
-v, --version Display version number
Key bindings:
ctrl+r Send request
ctrl+s Save response
@ -989,9 +995,13 @@ Key bindings:
func main() {
for _, arg := range os.Args {
if arg == "-h" || arg == "--help" {
switch arg {
case "-h", "--help":
help()
return
case "-v", "--version":
fmt.Printf("wuzz %v\n", VERSION)
return
}
}
g, err := gocui.NewGui(gocui.Output256)

Loading…
Cancel
Save