summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-11-30 22:29:19 -0500
committerJesse Luehrs <doy@tozt.net>2022-11-30 22:29:19 -0500
commit1c0fdd7d69f795c07f85660e01828252570b46b7 (patch)
tree8228315a471610d4dec787285ba046d47668ab9d /src/main.rs
parent3b6c6b4acf5f59ce29ead4d2eb49d30186b6bd18 (diff)
downloadadvent-of-code-1c0fdd7d69f795c07f85660e01828252570b46b7.tar.gz
advent-of-code-1c0fdd7d69f795c07f85660e01828252570b46b7.zip
2022
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 6a1de63..e04fedb 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -21,6 +21,8 @@ pub mod prelude;
mod year2020;
#[path = "2021/mod.rs"]
mod year2021;
+#[path = "2022/mod.rs"]
+mod year2022;
#[derive(Debug, structopt::StructOpt)]
#[structopt(about = "Advent of Code")]
@@ -29,6 +31,8 @@ enum Opt {
Year2020 { day: u8, puzzle: u8 },
#[structopt(name = "2021")]
Year2021 { day: u8, puzzle: u8 },
+ #[structopt(name = "2022")]
+ Year2022 { day: u8, puzzle: u8 },
}
#[paw::main]
@@ -36,6 +40,7 @@ fn main(opt: Opt) {
let res = match opt {
Opt::Year2020 { day, puzzle } => crate::year2020::run(day, puzzle),
Opt::Year2021 { day, puzzle } => crate::year2021::run(day, puzzle),
+ Opt::Year2022 { day, puzzle } => crate::year2022::run(day, puzzle),
};
match res {
Ok(answer) => {