feat: implement benchmarks (#30)

This commit is contained in:
Felix Spöttel
2023-10-21 21:08:46 +02:00
committed by GitHub
parent d10ec0573e
commit 70dac9329f
21 changed files with 993 additions and 567 deletions

View File

@@ -0,0 +1,15 @@
use std::process;
use crate::template::aoc_cli;
pub fn read_handler(day: u8) {
if aoc_cli::check().is_err() {
eprintln!("command \"aoc\" not found or not callable. Try running \"cargo install aoc-cli\" to install it.");
process::exit(1);
}
if let Err(e) = aoc_cli::read(day) {
eprintln!("failed to call aoc-cli: {}", e);
process::exit(1);
};
}