20 lines
355 B
Go
20 lines
355 B
Go
package app
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/apex/log"
|
|
ooni "github.com/ooni/probe-cli"
|
|
"github.com/ooni/probe-cli/internal/cli/root"
|
|
)
|
|
|
|
// Run the app. This is the main app entry point
|
|
func Run() {
|
|
root.Cmd.Version(ooni.Version)
|
|
_, err := root.Cmd.Parse(os.Args[1:])
|
|
if err != nil {
|
|
log.WithError(err).Error("failed to parse arguments")
|
|
}
|
|
return
|
|
}
|