2018-02-07 19:02:18 +01:00
|
|
|
package version
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/alecthomas/kingpin"
|
2021-02-02 10:32:46 +01:00
|
|
|
"github.com/ooni/probe-cli/v3/cmd/ooniprobe/internal/cli/root"
|
|
|
|
"github.com/ooni/probe-cli/v3/cmd/ooniprobe/internal/version"
|
2018-02-07 19:02:18 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
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)
|
2018-02-07 19:02:18 +01:00
|
|
|
return nil
|
|
|
|
})
|
|
|
|
}
|