mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-13 21:22:40 +08:00
23 lines
383 B
Go
23 lines
383 B
Go
|
//go:build gui
|
||
|
// +build gui
|
||
|
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
"github.com/gravitl/netmaker/netclient/config"
|
||
|
"github.com/gravitl/netmaker/netclient/gui"
|
||
|
"github.com/gravitl/netmaker/netclient/ncutils"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
config.GuiActive = true
|
||
|
|
||
|
config.GuiRun = func() {
|
||
|
networks, err := ncutils.GetSystemNetworks()
|
||
|
if err != nil {
|
||
|
networks = []string{}
|
||
|
}
|
||
|
gui.Run(networks)
|
||
|
}
|
||
|
}
|