ooni-probe-cli/internal/cli/version/version.go
Arturo Filastò 0c5b6aa37c Rename gooni to probe-cli
This is the command I used:
```
rg 'github.com/openobservatory/gooni' --files-with-matches \
    | xargs sed -i '' 's/github.com\/openobservatory\/gooni/github.com\/ooni\/probe-cli/g'
```
2018-05-03 14:59:55 +02:00

19 lines
303 B
Go

package version
import (
"fmt"
"github.com/alecthomas/kingpin"
"github.com/ooni/probe-cli/internal/cli/root"
)
const Version = "3.0.0-dev.0"
func init() {
cmd := root.Command("version", "Show version.")
cmd.Action(func(_ *kingpin.ParseContext) error {
fmt.Println(Version)
return nil
})
}