feat: enable creating items on the same level
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-16 10:10:11 +02:00
parent 832587b51d
commit 65c2466f97
5 changed files with 46 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ pub enum Commands {
Archive,
CreateSection { name: String },
CreateItem { name: String },
CreateBelow { name: String },
Edit,
ShowAll,
@@ -44,6 +45,9 @@ impl CommandParser {
"ci" | "create-item" => Some(Commands::CreateItem {
name: rest.join(" ").to_string(),
}),
"cb" | "create-below" => Some(Commands::CreateBelow {
name: rest.join(" ").to_string(),
}),
"e" | "edit" => Some(Commands::Edit),
"show-all" => Some(Commands::ShowAll),
"hide-done" => Some(Commands::HideDone),