mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-12 04:25:08 +08:00
22 lines
383 B
Go
22 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)
|
|
}
|
|
}
|