Implement handlers to normalise how logging is handled
This commit is contained in:
parent
e7ee54436e
commit
3cdb927eb0
14 changed files with 176 additions and 30 deletions
|
|
@ -5,12 +5,10 @@ import (
|
|||
|
||||
"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
|
||||
|
|
|
|||
Loading…
Reference in a new issue