Start laying out the structure of gooni
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package root
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/kingpin"
|
||||
"github.com/openobservatory/gooni/internal/util"
|
||||
)
|
||||
|
||||
// Cmd is the root command
|
||||
var Cmd = kingpin.New("ooni", "")
|
||||
|
||||
// Command is syntax sugar for defining sub-commands
|
||||
var Command = Cmd.Command
|
||||
|
||||
func init() {
|
||||
Cmd.PreAction(func(ctx *kingpin.ParseContext) error {
|
||||
util.Log("Running pre-action")
|
||||
return nil
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user