|
|
@ -11,13 +11,15 @@ struct LaunchArguments {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async fn output(mut output_event: Receiver<Event>) {
|
|
|
|
async fn output(mut output_event: Receiver<Event>) {
|
|
|
|
let body: OutputEventBody =
|
|
|
|
loop {
|
|
|
|
from_value(output_event.recv().await.unwrap().body.unwrap()).unwrap();
|
|
|
|
let body: OutputEventBody =
|
|
|
|
println!(
|
|
|
|
from_value(output_event.recv().await.unwrap().body.unwrap()).unwrap();
|
|
|
|
"> [{}] {}",
|
|
|
|
println!(
|
|
|
|
body.category.unwrap_or("unknown".to_owned()),
|
|
|
|
"> [{}] {}",
|
|
|
|
body.output
|
|
|
|
body.category.unwrap_or("unknown".to_owned()),
|
|
|
|
);
|
|
|
|
body.output
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
#[tokio::main]
|
|
|
|