autocommit 2022-03-30 15:44:07 CEST
This commit is contained in:
parent
28c9b46400
commit
c4854c4d7d
7 changed files with 117 additions and 41 deletions
15
src/cli/quit.rs
Normal file
15
src/cli/quit.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
use crate::cli::GlobalArgs;
|
||||
use crate::tools::tool_client::ToolClient;
|
||||
use crate::wire::jay_compositor::Quit;
|
||||
use std::rc::Rc;
|
||||
|
||||
pub fn main(global: GlobalArgs) {
|
||||
let tc = ToolClient::new(global.log_level.into());
|
||||
tc.run(run(tc.clone()));
|
||||
}
|
||||
|
||||
async fn run(tc: Rc<ToolClient>) {
|
||||
let comp = tc.jay_compositor().await;
|
||||
tc.send(Quit { self_id: comp });
|
||||
tc.round_trip().await;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue