summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-02-15 23:09:42 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-02-15 23:12:58 +0100
commit7d971416d9a41da4b39a1291bb286fd5c81c2826 (patch)
tree0826e04f0e30c22044ccafeaa5bec3eceec5b9f8
parentcc038ad8c772f286512f7eff2b8a96e89895398d (diff)
Fix: Allow "mark" subcommand to be passed IDs directly on CLI
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--bin/domain/imag-todo/src/ui.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/domain/imag-todo/src/ui.rs b/bin/domain/imag-todo/src/ui.rs
index 9dfb75ea..7d0affd5 100644
--- a/bin/domain/imag-todo/src/ui.rs
+++ b/bin/domain/imag-todo/src/ui.rs
@@ -213,6 +213,10 @@ impl IdPathProvider for PathProvider {
match matches.subcommand() {
("show", Some(scmd)) => scmd.values_of("todos"),
("show", None) => unimplemented!(),
+ ("mark", Some(scmd)) => match scmd.subcommand() {
+ (_, Some(scmd)) => scmd.values_of("todos"),
+ (_, None) => unimplemented!(),
+ },
_ => unimplemented!()
}
.map(|v| v