Fix(app::command_interface): Add a `greet_multiple()` func to test tables
This is, like the `greet` function only here to debug the lua api. It outputs a table.
This commit is contained in:
parent
57b01f0dbb
commit
fdb6ab1c29
|
@ -22,6 +22,10 @@ struct Commands {
|
|||
/// Greets the user
|
||||
greet: fn(String) -> String,
|
||||
|
||||
/// Returns a table of greeted users
|
||||
greet_multiple: fn() -> Table,
|
||||
// End debug functions
|
||||
|
||||
/// Closes the application
|
||||
exit: fn(),
|
||||
|
||||
|
|
|
@ -110,6 +110,12 @@ pub async fn handle(
|
|||
send_main_output!("{}", output);
|
||||
EventStatus::Ok
|
||||
}
|
||||
Command::GreetMultiple => {
|
||||
let mut table: Table = HashMap::new();
|
||||
table.insert("UserName1".to_owned(), CommandTransferValue::Integer(2));
|
||||
send_main_output!(table);
|
||||
EventStatus::Ok
|
||||
}
|
||||
Command::Help(_) => todo!(),
|
||||
Command::RaiseError(err) => {
|
||||
send_error_output!(err);
|
||||
|
|
Reference in New Issue