Configs refactor. New WIP config for activity watch like reaction server

This commit is contained in:
ppom
2023-10-12 12:00:00 +02:00
parent 92e07f5fe6
commit 9d44c05a17
8 changed files with 179 additions and 4 deletions

View File

@ -27,7 +27,7 @@ streams:
ssh:
# note that if the command is not in environment's `PATH`
# its full path must be given.
cmd: [ "journalctl" "-fu" "sshd.service" ]
cmd: [ "journalctl" "-n0" "-fu" "sshd.service" ]
# filters run actions when they match regexes on a stream
filters:
# filters have a user-defined name

View File

@ -97,7 +97,7 @@ cat FILE | ` + bold + `reaction test-regex` + reset + ` REGEX # test REGEX again
`)
}
//go:embed reaction.yml
//go:embed example.yml
var exampleConf string
func Main() {