Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): fix lcode fzy detail and generate help #6

Merged
merged 1 commit into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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