Import submodule

This commit is contained in:
Owen
2025-11-01 18:37:53 -07:00
parent 218e4f88bc
commit eaf94e6855
2 changed files with 3 additions and 2 deletions

View File

@@ -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:])
}

View File

@@ -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)