Add poll command to k2v-cli #335

Merged
lx merged 2 commits from k2v-watch into main 2022-07-04 10:45:32 +00:00
Showing only changes of commit 79f524f1bb - Show all commits

View file

@ -343,7 +343,9 @@ async fn main() -> Result<(), Error> {
causality,
output_kind,
} => {
let res_opt = client.poll_item(&partition_key, &sort_key, causality.into(), None).await?;
let res_opt = client
.poll_item(&partition_key, &sort_key, causality.into(), None)
.await?;
if let Some(res) = res_opt {
output_kind.display_output(res);
} else {