mirror of
https://github.com/fosrl/olm.git
synced 2026-02-08 05:56:41 +00:00
3
main.go
3
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:])
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user