mirror of
https://github.com/fosrl/olm.git
synced 2026-02-08 05:56:41 +00:00
Import submodule
This commit is contained in:
3
main.go
3
main.go
@@ -7,6 +7,7 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"github.com/fosrl/newt/logger"
|
"github.com/fosrl/newt/logger"
|
||||||
|
"github.com/fosrl/olm/olm"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -163,5 +164,5 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func runOlmMain(ctx context.Context) {
|
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"
|
"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
|
// Load configuration from file, env vars, and CLI args
|
||||||
// Priority: CLI args > Env vars > Config file > Defaults
|
// Priority: CLI args > Env vars > Config file > Defaults
|
||||||
config, showVersion, showConfig, err := LoadConfig(args)
|
config, showVersion, showConfig, err := LoadConfig(args)
|
||||||
|
|||||||
Reference in New Issue
Block a user