diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-10-04 18:19:52 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-11-06 20:33:30 +0100 |
commit | d3400167dfe9e5cb5a146c24e99b901a622a38bf (patch) | |
tree | 2194f7248c14728d09b61c0d1fbbfa27265698e3 /bin/core | |
parent | aef969f8bbf14db185707c31c48a4bae5071cc84 (diff) |
Add ID reporting in imag-tag
Diffstat (limited to 'bin/core')
-rw-r--r-- | bin/core/imag-tag/src/main.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/core/imag-tag/src/main.rs b/bin/core/imag-tag/src/main.rs index ff96418a..2b5349d4 100644 --- a/bin/core/imag-tag/src/main.rs +++ b/bin/core/imag-tag/src/main.rs @@ -113,7 +113,7 @@ fn main() { } fn alter(rt: &Runtime, path: StoreId, add: Option<Vec<Tag>>, rem: Option<Vec<Tag>>) { - match rt.store().get(path) { + match rt.store().get(path.clone()) { Ok(Some(mut e)) => { debug!("Entry header now = {:?}", e.get_header()); @@ -154,6 +154,10 @@ fn alter(rt: &Runtime, path: StoreId, add: Option<Vec<Tag>>, rem: Option<Vec<Tag trace_error(&e); }, } + + let _ = rt + .report_touched(&path) + .map_err_trace_exit_unwrap(1); } fn list(path: StoreId, rt: &Runtime) { @@ -200,6 +204,10 @@ fn list(path: StoreId, rt: &Runtime) { .to_exit_code() .unwrap_or_exit(); } + + let _ = rt + .report_touched(&path) + .map_err_trace_exit_unwrap(1); } /// Get the tags which should be added from the commandline |