ooni-probe-cli/internal/cli/version/version.go
2018-02-07 20:02:18 +02:00

19 lines
304 B
Go

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