feat: add filtering
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-10 23:46:51 +02:00
parent 07b768d0be
commit 78ccae8a1b
2 changed files with 20 additions and 4 deletions

View File

@@ -7,6 +7,9 @@ pub enum Commands {
Archive,
CreateSection { name: String },
Edit,
ShowAll,
HideDone,
}
impl Commands {
@@ -37,6 +40,8 @@ impl CommandParser {
name: name.to_string(),
}),
"e" | "edit" => Some(Commands::Edit),
"show-all" => Some(Commands::ShowAll),
"hide-done" => Some(Commands::HideDone),
_ => None,
},
None => None,