kea-manage/main.go
Matthew Stobbs a78f001a41 working configuration for reservations
- Make ipv4 reservations in kea by directly writing to the database
- uses same configuration file as database configuration under the
heading reservationV4
2024-09-24 14:43:54 -06:00

23 lines
453 B
Go

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()
}