16 lines
299 B
Go
16 lines
299 B
Go
|
package app
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
|
||
|
"github.com/openobservatory/gooni/internal/cli/root"
|
||
|
"github.com/openobservatory/gooni/internal/cli/version"
|
||
|
)
|
||
|
|
||
|
// 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
|
||
|
}
|