Start laying out the structure of gooni

This commit is contained in:
Arturo Filastò
2018-02-07 20:02:18 +02:00
commit 7327e1ff7f
22 changed files with 529 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package version
import (
"fmt"
"github.com/alecthomas/kingpin"
"github.com/openobservatory/gooni/internal/cli/root"
)
const Version = "0.0.1"
func init() {
cmd := root.Command("version", "Show version.")
cmd.Action(func(_ *kingpin.ParseContext) error {
fmt.Println(Version)
return nil
})
}