feat: Support context options

This commit is contained in:
Michael Aaron Murphy 2021-08-17 15:15:23 +02:00
parent a852584a0d
commit dae8108cb1
8 changed files with 220 additions and 37 deletions

View file

@ -36,10 +36,10 @@ pub async fn main() {
match request {
Ok(request) => match request {
Request::Activate(id) => app.activate(id).await,
Request::Complete(_) | Request::Interrupt => (),
Request::Quit(_id) => (),
Request::Search(query) => app.search(&query).await,
Request::Exit => break,
_ => (),
},
Err(why) => {
tracing::error!("malformed JSON request: {}", why);