diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-02-15 23:09:42 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-02-16 09:59:54 +0100 |
commit | ef9cb6d4e718546afcffa90540a9c4ffafc12569 (patch) | |
tree | 7caa6e4ea3996a38b92cf19d5e1833fea113de04 | |
parent | e94eece31ecc4aaa138ea4315c1d8220d1104b5a (diff) |
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.rs | 4 |
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 |