package main import ( "log/slog" "os" "git.staur.ca/stobbsm/kea-manage/cmd" "github.com/spf13/viper" ) 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() }