ooni-probe-cli/internal/cli/version/version.go

19 lines
312 B
Go
Raw Normal View History

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