mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 00:52:55 +00:00 
			
		
		
		
	History monitor should only emit events
This commit is contained in:
		@@ -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):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user