diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 2dee40f..be32135 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -3,6 +3,11 @@ use clap::{arg, Parser, Subcommand}; use commands::day001::*; use commands::day002::*; use commands::day003::*; +use commands::day004::*; +use commands::day005::*; +use commands::day006::*; +use commands::day007::*; +use commands::day008::*; //use std::ffi::OsString; use std::path::PathBuf; @@ -44,6 +49,36 @@ pub enum Commands { #[arg(long)] alt: bool, }, + /// Solution for day 04 + Day004 { + file: Option, + #[arg(long)] + alt: bool, + }, + /// Solution for day 05 + Day005 { + file: Option, + #[arg(long)] + alt: bool, + }, + /// Solution for day 06 + Day006 { + file: Option, + #[arg(long)] + alt: bool, + }, + /// Solution for day 07 + Day007 { + file: Option, + #[arg(long)] + alt: bool, + }, + /// Solution for day 08 + Day008 { + file: Option, + #[arg(long)] + alt: bool, + }, } pub fn execute_cli() { @@ -57,5 +92,10 @@ pub fn execute_cli() { _ => panic!(), }, Commands::Day003 { file, alt } => subcmd_day003(&file, &alt), + Commands::Day004 { file, alt } => subcmd_day004(&file, &alt), + Commands::Day005 { file, alt } => subcmd_day005(&file, &alt), + Commands::Day006 { file, alt } => subcmd_day006(&file, &alt), + Commands::Day007 { file, alt } => subcmd_day007(&file, &alt), + Commands::Day008 { file, alt } => subcmd_day008(&file, &alt) } }