use FullDefaultConfig in example config generator and remove leftover

This commit is contained in:
Willy Kloucek
2022-04-28 17:38:07 +02:00
parent e582b609b5
commit afa8ca8246
3 changed files with 8 additions and 29 deletions
@@ -22,7 +22,7 @@ func main() {
{{- range $key, $value := .}}
replacer.Replace("{{$value}}"): func() string {
fmt.Println("Generating example YAML config for {{ $value -}}")
c := pkg{{$key}}.DefaultConfig()
c := pkg{{$key}}.FullDefaultConfig()
pkg{{$key}}.EnsureDefaults(c)
pkg{{$key}}.Sanitize(c)
yml, err := yaml.Marshal(c)
@@ -50,4 +50,3 @@ func main() {
}
}
}