summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-02-15 23:09:42 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-02-16 09:59:54 +0100
commitef9cb6d4e718546afcffa90540a9c4ffafc12569 (patch)
tree7caa6e4ea3996a38b92cf19d5e1833fea113de04
parente94eece31ecc4aaa138ea4315c1d8220d1104b5a (diff)
downloadimag-ef9cb6d4e718546afcffa90540a9c4ffafc12569.zip
imag-ef9cb6d4e718546afcffa90540a9c4ffafc12569.tar.gz
Fix: Allow "mark" subcommand to be passed IDs directly on CLI
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> (cherry picked from commit 7d971416d9a41da4b39a1291bb286fd5c81c2826)
-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 9dfb75e..7d0affd 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