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