2018-02-07 19:02:18 +01:00
|
|
|
package version
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/alecthomas/kingpin"
|
2018-05-03 14:59:55 +02:00
|
|
|
"github.com/ooni/probe-cli/internal/cli/root"
|
2018-02-07 19:02:18 +01:00
|
|
|
)
|
|
|
|
|
2018-02-13 16:16:23 +01:00
|
|
|
const Version = "3.0.0-dev.0"
|
2018-02-07 19:02:18 +01:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
cmd := root.Command("version", "Show version.")
|
|
|
|
cmd.Action(func(_ *kingpin.ParseContext) error {
|
|
|
|
fmt.Println(Version)
|
|
|
|
return nil
|
|
|
|
})
|
|
|
|
}
|