ooni-probe-cli/internal/cli/onboard/onboard.go

21 lines
394 B
Go
Raw Normal View History

2018-06-25 16:31:44 +02:00
package onboard
import (
"github.com/alecthomas/kingpin"
"github.com/ooni/probe-cli/internal/cli/root"
2018-06-25 17:14:29 +02:00
"github.com/ooni/probe-cli/internal/onboard"
2018-06-25 16:31:44 +02:00
)
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
}
2018-06-25 17:14:29 +02:00
return onboard.Onboarding(ctx.Config)
2018-06-25 16:31:44 +02:00
})
}