mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2026-04-23 23:59:53 +08:00
config: add reload, watch and change detection logic
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
+1
-5
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user