From f7b161fb55645c4984ea7dbd2b24b79ad9b0a9cb Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 26 Jul 2023 21:14:36 +0200 Subject: [PATCH] Fix(handlers::command): Add the missing displayOutput handler This handler is called by the lua executor, to show the final output of a lua execution. --- .../app/events/event_types/event/handlers/command.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tui_app/app/events/event_types/event/handlers/command.rs b/src/tui_app/app/events/event_types/event/handlers/command.rs index 1672e96..554c91a 100644 --- a/src/tui_app/app/events/event_types/event/handlers/command.rs +++ b/src/tui_app/app/events/event_types/event/handlers/command.rs @@ -67,6 +67,14 @@ pub async fn handle( EventStatus::Terminate } + Command::DisplayOutput(output) => { + // TODO(@Soispha): This is only used to show the lua command output to the user. + // Lua commands already receive the output. This should probably be communicated + // better, should it? + send_status_output!(output); + EventStatus::Ok + } + Command::CommandLineShow => { app.ui.cli_enable(); send_status_output!("CLI online");