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

10 lines
234 B
Python
Raw Normal View History

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