diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-10-26 20:30:38 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-10-26 20:48:00 +0200 |
commit | cbbbbb59b555d48c54d1feaf6e856fefe4d8dc5d (patch) | |
tree | 3c5512911965a6b9a77b73258ada7d646b3412a6 | |
parent | a6effe7ef388a3224572204f6d821f96856acc03 (diff) |
Add id reporting in imag-create
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | bin/core/imag-create/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/core/imag-create/src/lib.rs b/bin/core/imag-create/src/lib.rs index ced6e0ac..c208aa54 100644 --- a/bin/core/imag-create/src/lib.rs +++ b/bin/core/imag-create/src/lib.rs @@ -47,6 +47,7 @@ use clap::App; use libimagrt::runtime::Runtime; use libimagrt::application::ImagApplication; +use libimagrt::iter::ReportTouchedResultEntry; use libimagstore::iter::create::StoreIdCreateIteratorExtension; use libimagstore::iter::retrieve::StoreIdRetrieveIteratorExtension; @@ -65,9 +66,9 @@ impl ImagApplication for ImagCreate { .map(Ok); if force { - ids.into_retrieve_iter(rt.store()).collect::<Result<Vec<_>>>() + ids.into_retrieve_iter(rt.store()).map_report_touched(&rt).collect::<Result<Vec<_>>>() } else { - ids.into_create_iter(rt.store()).collect::<Result<Vec<_>>>() + ids.into_create_iter(rt.store()).map_report_touched(&rt).collect::<Result<Vec<_>>>() }.map(|_| ()) } |