Add ID reporting in imag-gps
This commit is contained in:
parent
3a6443b3ef
commit
ff809a3750
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
})
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue