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