ooni-probe-cli/cmd/ooni/main.go

30 lines
807 B
Go
Raw Normal View History

package main
import (
// commands
"github.com/apex/log"
2018-06-29 15:10:19 +02:00
"github.com/getsentry/raven-go"
_ "github.com/ooni/probe-cli/internal/cli/geoip"
_ "github.com/ooni/probe-cli/internal/cli/info"
_ "github.com/ooni/probe-cli/internal/cli/list"
_ "github.com/ooni/probe-cli/internal/cli/nettest"
2018-06-25 16:31:44 +02:00
_ "github.com/ooni/probe-cli/internal/cli/onboard"
_ "github.com/ooni/probe-cli/internal/cli/run"
_ "github.com/ooni/probe-cli/internal/cli/show"
_ "github.com/ooni/probe-cli/internal/cli/upload"
_ "github.com/ooni/probe-cli/internal/cli/version"
"github.com/ooni/probe-cli/internal/cli/app"
)
func main() {
2018-06-29 15:10:19 +02:00
raven.SetDSN("https://cb4510e090f64382ac371040c19b2258:8448daeebfa643c289ef398f8645980b@sentry.io/1234954")
err := app.Run()
if err == nil {
return
}
log.WithError(err).Fatal("main exit")
}