19 lines
310 B
Go
19 lines
310 B
Go
package version
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/alecthomas/kingpin"
|
|
"github.com/openobservatory/gooni/internal/cli/root"
|
|
)
|
|
|
|
const Version = "3.0.0-dev.0"
|
|
|
|
func init() {
|
|
cmd := root.Command("version", "Show version.")
|
|
cmd.Action(func(_ *kingpin.ParseContext) error {
|
|
fmt.Println(Version)
|
|
return nil
|
|
})
|
|
}
|