diff --git a/main.go b/main.go index 96c2e0d..1b59283 100644 --- a/main.go +++ b/main.go @@ -7,6 +7,7 @@ import ( "runtime" "github.com/fosrl/newt/logger" + "github.com/fosrl/olm/olm" ) func main() { @@ -163,5 +164,5 @@ func main() { } func runOlmMain(ctx context.Context) { - olm(ctx, os.Args[1:]) + olm.Olm(ctx, os.Args[1:]) } diff --git a/olm/olm.go b/olm/olm.go index 627bdb1..d15ee20 100644 --- a/olm/olm.go +++ b/olm/olm.go @@ -22,7 +22,7 @@ import ( "golang.zx2c4.com/wireguard/wgctrl/wgtypes" ) -func olm(ctx context.Context, args []string) { +func Olm(ctx context.Context, args []string) { // Load configuration from file, env vars, and CLI args // Priority: CLI args > Env vars > Config file > Defaults config, showVersion, showConfig, err := LoadConfig(args)