Skip to content

Commit

Permalink
small todo list change in main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
MickHarrigan committed Oct 5, 2023
1 parent 1e63b76 commit d035a40
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,14 @@ use clap::Parser;
async fn main() -> Result<()> {
let args = Cli::parse();
match &args.command {
Commands::New { link } => {
commands::new::run(link).await? // <--- Remove this ; later as it should return all the way up to
// main
}
/**********************************************************************/
// These are the commands that are most necessary
Commands::New { link } => commands::new::run(link).await?,

Commands::Edit { num } => {
// takes a number then allows the user to edit the solution
// this is the mutating version of Commands::Info.
commands::edit::run(num)?
}
Commands::Edit { num } => commands::edit::run(num)?,

Commands::Tag { cmd } => tag_subcommands(cmd)?,
Commands::Info { num } => {
// takes a number and prints a bunch of info about the problem
}
Commands::Search { cmd } => {
// given any of (name, number, tag(s)) will find what you are searching for
}
Commands::Hide { num } => {
// given a number will tag this as a hidden problem that has been attempted but not
// completed. This should maybe be pushed somewhere else or just not tracked.
}

Commands::Test { num } => {
// same as submit but with the altered state of running the tests that LC provides
}
Expand All @@ -41,6 +27,18 @@ async fn main() -> Result<()> {
// to actually send this to them and receive the response. HTTP? GraphQL? I have no
// clue.
}
/**********************************************************************/
// these are the commands that can be remade for other uses
Commands::Search { cmd } => {
// given any of (name, number, tag(s)) will find what you are searching for
}
Commands::Info { num } => {
// takes a number and prints a bunch of info about the problem
}
Commands::Hide { num } => {
// given a number will tag this as a hidden problem that has been attempted but not
// completed. This should maybe be pushed somewhere else or just not tracked.
}
Commands::Finish { num } => {
// Ceremoniously tags the problem as completed and with whichever solution was used.
// Maybe this can track multiple solutions as well to be able to compare them.
Expand Down

0 comments on commit d035a40

Please sign in to comment.