summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-todo/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-11-04 20:35:21 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-11-09 17:35:19 +0100
commit5cfbab8b8eeae80c638fc3bd8f6072c245e831bf (patch)
tree20d8c35d44faa9c5745329cc06598d117050a4ed /bin/domain/imag-todo/src/lib.rs
parent5be95227c4e2143a82a7576e3d2beba17f373dd5 (diff)
downloadimag-5cfbab8b8eeae80c638fc3bd8f6072c245e831bf.tar.gz
imag-5cfbab8b8eeae80c638fc3bd8f6072c245e831bf.tar.xz
Diffstat (limited to 'bin/domain/imag-todo/src/lib.rs')
-rw-r--r--bin/domain/imag-todo/src/lib.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/domain/imag-todo/src/lib.rs b/bin/domain/imag-todo/src/lib.rs
index f6598a7f..2b6d4d15 100644
--- a/bin/domain/imag-todo/src/lib.rs
+++ b/bin/domain/imag-todo/src/lib.rs
@@ -44,6 +44,18 @@ extern crate kairos;
#[macro_use] extern crate failure;
extern crate resiter;
+#[cfg(feature = "import-taskwarrior")]
+extern crate task_hookrs;
+
+#[cfg(feature = "import-taskwarrior")]
+extern crate uuid;
+
+#[cfg(feature = "import-taskwarrior")]
+extern crate libimagentrytag;
+
+#[cfg(feature = "import-taskwarrior")]
+extern crate libimagentrylink;
+
extern crate libimagrt;
extern crate libimagstore;
extern crate libimagerror;
@@ -79,6 +91,7 @@ use libimagtodo::store::TodoStore;
use libimagutil::date::datetime_to_string;
mod ui;
+mod import;
/// Marker enum for implementing ImagApplication on
///
@@ -93,6 +106,7 @@ impl ImagApplication for ImagTodo {
Some("mark") => mark(&rt),
Some("pending") | None => list_todos(&rt, &StatusMatcher::new().is(Status::Pending), false),
Some("list") => list(&rt),
+ Some("import") => import::import(&rt),
Some(other) => {
debug!("Unknown command");
if rt.handle_unknown_subcommand("imag-todo", other, rt.cli())?.success() {