kea-manage/main.go

23 lines
453 B
Go
Raw Normal View History

2024-09-14 04:21:14 +00:00
package main
import (
"log/slog"
2024-09-14 04:21:14 +00:00
"os"
"git.staur.ca/stobbsm/kea-manage/cmd"
"github.com/spf13/viper"
2024-09-14 04:21:14 +00:00
)
func main() {
slog.SetLogLoggerLevel(slog.LevelDebug)
viper.SetConfigName("kea-manage")
viper.AddConfigPath("/etc")
viper.AddConfigPath(os.Getenv("HOME") + "/.config/kea-manage")
viper.AddConfigPath(".")
if err := viper.ReadInConfig(); err != nil {
slog.Error("error while reading configuration", err)
os.Exit(1)
}
cmd.Execute()
2024-09-14 04:21:14 +00:00
}