New unified CLI design

fixes #25
thanks @bertille-ddp for comments && suggestions!
This commit is contained in:
ppom
2023-09-03 12:13:18 +02:00
parent cbfad9303f
commit 799ba88823
11 changed files with 306 additions and 106 deletions

View File

@ -173,7 +173,7 @@ func (c *Conf) setup() {
}
action.afterDuration = afterDuration
} else if action.OnExit {
log.Fatalln("FATAL Bad configuration: Cannot have `onexit:true` without an `after` directive in", stream.name, ".", filter.name, ".", action.name)
log.Fatalln("FATAL Bad configuration: Cannot have `onexit: true` without an `after` directive in", stream.name, ".", filter.name, ".", action.name)
}
if filter.longuestActionDuration == nil || filter.longuestActionDuration.Milliseconds() < action.afterDuration.Milliseconds() {
filter.longuestActionDuration = &action.afterDuration