From 363a0f8fc49e7ff62b7f1c52a08f9806543fa881 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 2d93e2f..953668f 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");