summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-todo/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-03-01 17:34:53 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-03-01 19:20:27 +0100
commit47700a2fcae409aeeb085a6b2a8df16619c86eb5 (patch)
treefde18dcdded0027409097852c4f677f1e9b8933b /bin/domain/imag-todo/src/lib.rs
parentd3f8706fa77c5430769f7452d172ce834811ee7b (diff)
downloadimag-47700a2fcae409aeeb085a6b2a8df16619c86eb5.tar.gz
imag-47700a2fcae409aeeb085a6b2a8df16619c86eb5.tar.xz
Diffstat (limited to 'bin/domain/imag-todo/src/lib.rs')
-rw-r--r--bin/domain/imag-todo/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/domain/imag-todo/src/lib.rs b/bin/domain/imag-todo/src/lib.rs
index 0f52a095..12712f09 100644
--- a/bin/domain/imag-todo/src/lib.rs
+++ b/bin/domain/imag-todo/src/lib.rs
@@ -316,7 +316,9 @@ fn list_todos(rt: &Runtime, matcher: &StatusMatcher, show_hidden: bool) -> Resul
}
})
.and_then_ok(|entry| {
+ trace!("Processing {}", entry.get_location());
if !rt.output_is_pipe() && (show_hidden || filter_hidden.filter(&entry)?) {
+ trace!("Printing {}", entry.get_location());
if let Err(e) = viewer.view_entry(&entry, &mut rt.stdout()) {
use libimagentryview::error::Error;
match e {
@@ -334,6 +336,7 @@ fn list_todos(rt: &Runtime, matcher: &StatusMatcher, show_hidden: bool) -> Resul
};
if rt.ids_from_stdin() {
+ trace!("Getting IDs from stdin");
let iter = rt.ids::<crate::ui::PathProvider>()?
.ok_or_else(|| err_msg("No ids supplied"))?
.into_iter()
@@ -343,6 +346,7 @@ fn list_todos(rt: &Runtime, matcher: &StatusMatcher, show_hidden: bool) -> Resul
process(&rt, matcher, show_hidden, iter)
} else {
+ trace!("Getting IDs from store");
let iter = rt.store().get_todos()?
.into_get_iter()
.map_inner_ok_or_else(|| err_msg("Did not find one entry"));