ooni-probe-cli/internal/cli/version/version.go
2019-05-23 16:38:46 +02:00

19 lines
318 B
Go

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