1
0
Fork 0

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.
This commit is contained in:
Benedikt Peetz 2023-07-26 21:14:36 +02:00
parent 909fc01a48
commit f7b161fb55
Signed by: bpeetz
GPG Key ID: A5E94010C3A642AD
1 changed files with 8 additions and 0 deletions

View File

@ -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");