ooni-probe-cli/internal/cli/app/app.go
2018-02-07 20:02:18 +02:00

18 lines
370 B
Go

package app
import (
"os"
"github.com/openobservatory/gooni/internal/cli/root"
"github.com/openobservatory/gooni/internal/cli/version"
"github.com/openobservatory/gooni/internal/util"
)
// Run the app. This is the main app entry point
func Run() error {
util.Log("Running")
root.Cmd.Version(version.Version)
_, err := root.Cmd.Parse(os.Args[1:])
return err
}