Add id reporting in imag-edit

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-10-26 20:30:38 +02:00
parent a5d006ef66
commit 57a8341b9c

View file

@ -49,6 +49,7 @@ use libimagentryedit::edit::Edit;
use libimagentryedit::edit::EditHeader;
use libimagrt::runtime::Runtime;
use libimagrt::application::ImagApplication;
use libimagrt::iter::ReportTouchedResultEntry;
use libimagstore::iter::get::StoreIdGetIteratorExtension;
use failure::Fallible as Result;
@ -76,6 +77,7 @@ impl ImagApplication for ImagEdit {
.into_get_iter(rt.store())
.map_inner_ok_or_else(|| err_msg("Did not find one entry"))
.inspect(|e| debug!("Editing = {:?}", e))
.map_report_touched(&rt)
.and_then_ok(|mut entry| {
if edit_header {
entry.edit_header_and_content(&rt)