From d035a40820276d3ca4ca970c5fe4eacae75f303a Mon Sep 17 00:00:00 2001 From: Mick Harrigan Date: Thu, 5 Oct 2023 14:04:42 -0700 Subject: [PATCH] small todo list change in main.rs --- src/main.rs | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7a02c80..b28d0c4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 } @@ -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.