Skip to content

Commit

Permalink
updated most of the tag system to be mostly functional now
Browse files Browse the repository at this point in the history
  • Loading branch information
MickHarrigan committed Oct 5, 2023
1 parent 33d52b7 commit 1e63b76
Show file tree
Hide file tree
Showing 5 changed files with 326 additions and 26 deletions.
69 changes: 69 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ test = []
[dependencies]
anyhow = "1.0.75"
clap = { version = "4.4.4", features = ["derive"] }
rayon = "1.8.0"
regex = "1.9.5"
reqwest = { version = "0.11.20", features = ["json", "cookies"] }
serde = { version = "1.0.188", features = ["serde_derive", "derive"] }
Expand Down
5 changes: 4 additions & 1 deletion src/commands/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ pub enum Commands {
/// Search for a problem based on name, tags, or number
#[command(arg_required_else_help = true)]
Search { cmd: SearchCommand },
/// Run the LeetCode provided tests for the provided problem
#[command(arg_required_else_help = true)]
Test { num: usize },
/// Send a solution to be submitted
#[command(arg_required_else_help = true)]
Submit { num: usize },
Expand All @@ -63,7 +66,7 @@ where
std::io::stdin().read_line(&mut input)?;
let input = input.trim().to_string();
let output = input.parse::<T>()?;
println!("Input was parsed from: {} into {:?}", input, output);
// println!("Input was parsed from: {} into {:?}", input, output);
Ok((input, output))
}

Expand Down
Loading

0 comments on commit 1e63b76

Please sign in to comment.