polemos/main.go

22 lines
322 B
Go
Raw Normal View History

2023-03-14 15:12:28 +01:00
package main
import (
"fmt"
"os"
2023-03-21 13:34:52 +01:00
"github.com/thefeli73/polemos/mtdaws"
"github.com/thefeli73/polemos/state"
2023-03-14 15:12:28 +01:00
)
2023-03-21 13:34:52 +01:00
2023-03-14 15:12:28 +01:00
func main() {
fmt.Println("Starting Polemos")
2023-03-21 13:34:52 +01:00
config, err := state.LoadConf("config.yaml")
if err != nil {
fmt.Println("Error loading config:", err)
os.Exit(1)
}
2023-03-21 13:34:52 +01:00
mtdaws.IndexInstances(config)
}