mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2025-07-13 23:16:22 +00:00
Refactor TerminalCommands
This commit is contained in:
committed by
therealkrispet
parent
ef2ab5d0bf
commit
e50a8732fc
@ -13,7 +13,7 @@ from tfw.logging import Log, Logger, LogFormatter, VerboseLogFormatter
|
||||
from tao.config import TAOENV
|
||||
|
||||
from custom_event_handlers import MessageFSMStepsEventHandler
|
||||
from custom_event_handlers import TerminalCallbackEventHandler, TestCommands
|
||||
from custom_event_handlers import CenatorEventHandler, TestCommandsEventHandler
|
||||
from signal_handling import setup_signal_handlers
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
@ -44,9 +44,10 @@ def main():
|
||||
terminal = TerminalEventHandler( # Web shell backend
|
||||
key='shell'
|
||||
)
|
||||
commands = TerminalCallbackEventHandler( # Reacts to terminal commands
|
||||
'history.bash',
|
||||
TestCommands(bashrc=f'/home/{TAOENV.USER}/.bashrc').callback
|
||||
cenator = CenatorEventHandler('history.bash') # Reacts to terminal commands
|
||||
commands = TestCommandsEventHandler( # Catches special commands
|
||||
key='history.bash',
|
||||
bashrc=f'/home/{TAOENV.USER}/.bashrc'
|
||||
)
|
||||
processmanager = ProcessManagingEventHandler( # Handles 'deploy' button clicks
|
||||
key='processmanager',
|
||||
|
Reference in New Issue
Block a user