config: add reload, watch and change detection logic

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel
2022-09-30 08:23:09 +02:00
parent f189c4f2a2
commit 99623b39f8
26 changed files with 1245 additions and 691 deletions
+1 -5
View File
@@ -77,11 +77,7 @@ func (f *OutputFormat) UnmarshalText(text []byte) error {
*f = OutputFormat(text)
switch *f {
case OutputFormatJSON:
fallthrough
case OutputFormatLogger:
fallthrough
case OutputFormatHuman:
case OutputFormatJSON, OutputFormatLogger, OutputFormatHuman:
return nil
}