feat: allow async function in command
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-12 12:58:54 +02:00
parent 4a0fcd1bbb
commit cf26422673
14 changed files with 390 additions and 107 deletions

View File

@@ -10,6 +10,7 @@ pub enum Commands {
ShowAll,
HideDone,
Test,
}
impl Commands {
@@ -42,6 +43,7 @@ impl CommandParser {
"e" | "edit" => Some(Commands::Edit),
"show-all" => Some(Commands::ShowAll),
"hide-done" => Some(Commands::HideDone),
"test" => Some(Commands::Test),
_ => None,
},
None => None,