WIP ent new
This commit is contained in:
parent
2772db19a9
commit
7bd1773856
1 changed files with 12 additions and 8 deletions
|
|
@ -16,14 +16,12 @@ struct Args {
|
||||||
enum Commands {
|
enum Commands {
|
||||||
/// List issues.
|
/// List issues.
|
||||||
List,
|
List,
|
||||||
// Mdbook {
|
|
||||||
// /// The name of the recipe to create MD Book for.
|
/// Create a new issue.
|
||||||
// target: String,
|
New {
|
||||||
// },
|
title: Option<String>,
|
||||||
// Info {
|
description: Option<String>,
|
||||||
// /// The name of the recipe to show info for.
|
},
|
||||||
// target: String,
|
|
||||||
// },
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> anyhow::Result<()> {
|
fn main() -> anyhow::Result<()> {
|
||||||
|
|
@ -38,6 +36,12 @@ fn main() -> anyhow::Result<()> {
|
||||||
println!("{} {} ({:?})", uuid, issue.title, issue.state);
|
println!("{} {} ({:?})", uuid, issue.title, issue.state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Commands::New { title, description } => {
|
||||||
|
println!(
|
||||||
|
"should make a new issue, title={:?}, description={:?}",
|
||||||
|
title, description
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue