Add ID reporting in imag-gps

This commit is contained in:
Matthias Beyer 2018-10-01 12:48:52 +02:00
parent 3a6443b3ef
commit ff809a3750

View file

@ -135,6 +135,10 @@ fn add(rt: &Runtime) {
}) })
.set_coordinates(c.clone()) .set_coordinates(c.clone())
.map_err_trace_exit_unwrap(1); .map_err_trace_exit_unwrap(1);
let _ = rt
.report_touched(&id)
.map_err_trace_exit_unwrap(1);
}); });
} }
@ -168,6 +172,10 @@ fn remove(rt: &Runtime) {
if print_removed { if print_removed {
let _ = writeln!(rt.stdout(), "{}", removed_value).to_exit_code().unwrap_or_exit(); let _ = writeln!(rt.stdout(), "{}", removed_value).to_exit_code().unwrap_or_exit();
} }
let _ = rt
.report_touched(&id)
.map_err_trace_exit_unwrap(1);
}); });
} }
@ -193,6 +201,10 @@ fn get(rt: &Runtime) {
}); });
let _ = writeln!(stdout, "{}", value).to_exit_code().unwrap_or_exit(); let _ = writeln!(stdout, "{}", value).to_exit_code().unwrap_or_exit();
let _ = rt
.report_touched(&id)
.map_err_trace_exit_unwrap(1);
}) })
} }