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

10 lines
234 B
Python

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