mirror of
https://github.com/mikedilger/chorus.git
synced 2026-05-03 06:51:42 +00:00
Compare commits
No commits in common. "95ee2a572a61a86e88d0a1c4795a282946ef3213" and "b06497e53be91ca141e5da487609fc1fce8dbf15" have entirely different histories.
95ee2a572a
...
b06497e53b
@ -56,17 +56,6 @@ fn main() -> Result<(), Error> {
|
|||||||
}
|
}
|
||||||
println!("Done.");
|
println!("Done.");
|
||||||
}
|
}
|
||||||
"fetch_by_id" => {
|
|
||||||
let idstr = args
|
|
||||||
.next()
|
|
||||||
.ok_or::<Error>(ChorusError::General("ID argument missing".to_owned()).into())?;
|
|
||||||
let id: Id = Id::read_hex(idstr.as_bytes())?;
|
|
||||||
if let Some(event) = store.get_event_by_id(id)? {
|
|
||||||
println!("{event}");
|
|
||||||
} else {
|
|
||||||
println!("Not found.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
_ => {
|
_ => {
|
||||||
return Err(ChorusError::General("Unknown command.".to_owned()).into());
|
return Err(ChorusError::General("Unknown command.".to_owned()).into());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user