Skip to content

Commit

Permalink
Merge pull request #6 from saying121/dev
Browse files Browse the repository at this point in the history
fix(cli): fix `lcode fzy detail` and `generate` help
  • Loading branch information
saying121 authored Apr 28, 2024
2 parents 6380e37 + fccd3da commit 5980576
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/lcode/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lcode"
version = "0.8.0"
version = "0.8.1"
description = "An application of terminal write leetcode.一个终端刷力扣的应用"
documentation = "https://docs.rs/lcode"
license = "Apache-2.0"
Expand Down
11 changes: 9 additions & 2 deletions crates/lcode/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ enum Commands {
Submit(SubTestArgs),
#[command(alias = "sl", about = format!("Get submit list {}", "[ alias: sl ]".bold()))]
Sublist(SubTestArgs),
#[command(alias = "g", about = format!("Generate a config, will also be automatically generated at runtime {}","[ alias: g ]".bold()))]
#[command(alias = "g", about = format!("Generate a config {}", "[ alias: g ]".bold()))]
Gencon(GenArgs),
#[command(alias = "T", about = format!("Open Tui {}", "[ alias: T ]".bold()))]
Tui,
Expand Down Expand Up @@ -95,10 +95,17 @@ struct InterArgs {
#[derive(Subcommand)]
enum DetailOrEdit {
#[command(about = "View detail")]
Detail(DetailArgs),
Detail(DetailArgsFzy),
#[command(about = "Edit code")]
Edit,
}
#[derive(Debug)]
#[derive(Args)]
#[command(args_conflicts_with_subcommands = true)]
struct DetailArgsFzy {
#[arg(short, long, help = "Force update question's information")]
force: bool,
}

#[derive(Debug)]
#[derive(Args)]
Expand Down

0 comments on commit 5980576

Please sign in to comment.