ooni-probe-cli/internal/cli/onboard/onboard.go
2018-06-25 17:14:29 +02:00

21 lines
394 B
Go

package onboard
import (
"github.com/alecthomas/kingpin"
"github.com/ooni/probe-cli/internal/cli/root"
"github.com/ooni/probe-cli/internal/onboard"
)
func init() {
cmd := root.Command("onboard", "Starts the onboarding process")
cmd.Action(func(_ *kingpin.ParseContext) error {
ctx, err := root.Init()
if err != nil {
return err
}
return onboard.Onboarding(ctx.Config)
})
}