a119e0814b
pending actions are now data, they're not goroutines anymore ❤️
warn: cli currently doesn't work, but it's already a huge commit
22 lines
441 B
YAML
22 lines
441 B
YAML
---
|
|
patterns:
|
|
num:
|
|
regex: '[0-9]+'
|
|
|
|
streams:
|
|
tailDown:
|
|
cmd: [ "sh", "-c", "sleep 0.5; echo found 1; sleep 1; echo found 1; sleep 10" ]
|
|
filters:
|
|
findIP:
|
|
regex:
|
|
- '^found <num>$'
|
|
retry: 2
|
|
retry-period: 1m
|
|
actions:
|
|
damn:
|
|
cmd: [ "echo", "<num>" ]
|
|
undamn:
|
|
cmd: [ "echo", "undamn", "<num>" ]
|
|
after: 5s
|
|
onexit: true
|