Matthew Stobbs
a78f001a41
- Make ipv4 reservations in kea by directly writing to the database - uses same configuration file as database configuration under the heading reservationV4
23 lines
453 B
Go
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()
|
|
}
|