baseimage-tutorial-framework/tfw/components/terminal/terminal_commands_handler.py

10 lines
236 B
Python
Raw Normal View History

from .terminal_commands import TerminalCommands
class TerminalCommandsHandler(TerminalCommands):
keys = ['history.bash']
def handle_event(self, message, _):
command = message['command']
self.callback(command)