diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-10-01 12:48:52 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-11-06 20:33:30 +0100 |
commit | ff809a3750ce98cafa3d655ebd60945a6f5dba13 (patch) | |
tree | df5120bb9916d934f0d455c712e8601114cc7727 | |
parent | 3a6443b3ef97982da46775c26e8870a0cfbf4093 (diff) |
Add ID reporting in imag-gps
-rw-r--r-- | bin/core/imag-gps/src/main.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/core/imag-gps/src/main.rs b/bin/core/imag-gps/src/main.rs index fac2d0c4..50c94f61 100644 --- a/bin/core/imag-gps/src/main.rs +++ b/bin/core/imag-gps/src/main.rs @@ -135,6 +135,10 @@ fn add(rt: &Runtime) { }) .set_coordinates(c.clone()) .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 { 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 _ = rt + .report_touched(&id) + .map_err_trace_exit_unwrap(1); }) } |