feat: allow async function in command
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user