2018-02-07 19:02:18 +01:00
|
|
|
package app
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
2018-07-14 16:58:08 +02:00
|
|
|
ooni "github.com/ooni/probe-cli"
|
2018-05-03 14:59:55 +02:00
|
|
|
"github.com/ooni/probe-cli/internal/cli/root"
|
2018-02-07 19:02:18 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// Run the app. This is the main app entry point
|
|
|
|
func Run() error {
|
2018-07-14 16:58:08 +02:00
|
|
|
root.Cmd.Version(ooni.Version)
|
2018-02-07 19:02:18 +01:00
|
|
|
_, err := root.Cmd.Parse(os.Args[1:])
|
|
|
|
return err
|
|
|
|
}
|