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

18 lines
346 B
Go
Raw Normal View History

package version
import (
"fmt"
"github.com/alecthomas/kingpin"
"github.com/ooni/probe-cli/v3/cmd/ooniprobe/internal/cli/root"
"github.com/ooni/probe-cli/v3/internal/version"
)
func init() {
cmd := root.Command("version", "Show version.")
cmd.Action(func(_ *kingpin.ParseContext) error {
2019-05-23 16:38:46 +02:00
fmt.Println(version.Version)
return nil
})
}