History monitor should only emit events

This commit is contained in:
R. Richard 2019-08-26 14:53:52 +02:00
parent 0ea6188a05
commit 947d0a27b7

View File

@ -2,6 +2,7 @@ from re import findall
from re import compile as compileregex
from abc import ABC, abstractmethod
from tfw.internals.networking import Intent
from tfw.internals.inotify import InotifyObserver
@ -58,7 +59,7 @@ class HistoryMonitor(ABC, InotifyObserver):
self.uplink.send_message({
'key': f'history.{self.domain}',
'value': command
})
}, intent=Intent.EVENT)
class BashMonitor(HistoryMonitor):