26d807c50f
See https://github.com/ooni/probe-engine/issues/1181 While there, run `go fmt ./...`
18 lines
346 B
Go
18 lines
346 B
Go
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 {
|
|
fmt.Println(version.Version)
|
|
return nil
|
|
})
|
|
}
|