Skip to content

Commit

Permalink
Update parseversion command for ruby and php
Browse files Browse the repository at this point in the history
  • Loading branch information
jalan authored and autarch committed May 14, 2021
1 parent 007cf66 commit 12fecb8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/parseversion/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"gopkg.in/alecthomas/kingpin.v2"
)

const appVersion = "0.0.1"
const appVersion = "0.0.7"

func main() {
pv, err := new()
Expand Down Expand Up @@ -42,8 +42,12 @@ func main() {
parsed, err = version.ParseSemVer(ver)
case "perl":
parsed, err = version.ParsePerl(ver)
case "php":
parsed, err = version.ParsePHP(ver)
case "python":
parsed, err = version.ParsePython(ver)
case "ruby":
parsed, err = version.ParseRuby(ver)
default:
pv.app.FatalUsage("Unknown version type requested: %s\n", typ)
}
Expand Down

0 comments on commit 12fecb8

Please sign in to comment.