23c8df1f0c
While there run the build container as unpriv user.
29 lines
819 B
Go
29 lines
819 B
Go
package main
|
|
|
|
import (
|
|
// commands
|
|
|
|
"github.com/apex/log"
|
|
_ "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/onboard"
|
|
_ "github.com/ooni/probe-cli/internal/cli/reset"
|
|
_ "github.com/ooni/probe-cli/internal/cli/rm"
|
|
_ "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/crashreport"
|
|
|
|
"github.com/ooni/probe-cli/internal/cli/app"
|
|
)
|
|
|
|
func main() {
|
|
err, _ := crashreport.CapturePanic(app.Run, nil)
|
|
if err != nil {
|
|
log.WithError(err.(error)).Error("panic in app.Run")
|
|
crashreport.Wait()
|
|
}
|
|
}
|