From 7bd1773856d09f309cfc42c064408182bf838539 Mon Sep 17 00:00:00 2001 From: Sebastian Kuzminsky Date: Thu, 3 Jul 2025 16:52:52 -0600 Subject: [PATCH] WIP `ent new` --- src/bin/ent/main.rs | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/bin/ent/main.rs b/src/bin/ent/main.rs index 238bbe3..53ecf9d 100644 --- a/src/bin/ent/main.rs +++ b/src/bin/ent/main.rs @@ -16,14 +16,12 @@ struct Args { enum Commands { /// List issues. List, - // Mdbook { - // /// The name of the recipe to create MD Book for. - // target: String, - // }, - // Info { - // /// The name of the recipe to show info for. - // target: String, - // }, + + /// Create a new issue. + New { + title: Option, + description: Option, + }, } fn main() -> anyhow::Result<()> { @@ -38,6 +36,12 @@ fn main() -> anyhow::Result<()> { println!("{} {} ({:?})", uuid, issue.title, issue.state); } } + Commands::New { title, description } => { + println!( + "should make a new issue, title={:?}, description={:?}", + title, description + ); + } } Ok(())