2023-08-13 23:25:22 +00:00
|
|
|
mod day1;
|
2023-08-15 03:23:53 +00:00
|
|
|
mod day2;
|
2023-08-13 23:25:22 +00:00
|
|
|
|
2023-08-15 03:23:53 +00:00
|
|
|
use collective_score_client::{run, Tasks};
|
2023-08-13 23:25:22 +00:00
|
|
|
use std::process;
|
|
|
|
|
|
|
|
fn main() {
|
2023-08-15 03:23:53 +00:00
|
|
|
let day1_tasks = day1::tasks();
|
|
|
|
let day2_tasks = day2::tasks();
|
|
|
|
|
|
|
|
let n_tasks = day1_tasks.len() + day2_tasks.len();
|
|
|
|
|
|
|
|
let tasks: Tasks = day1_tasks.into_iter().chain(day2_tasks).collect();
|
|
|
|
|
|
|
|
assert_eq!(tasks.len(), n_tasks, "Task name conflict!");
|
2023-08-13 23:25:22 +00:00
|
|
|
|
|
|
|
if let Err(e) = run(
|
|
|
|
tasks,
|
|
|
|
"collective-score-dev-tools",
|
|
|
|
"https://collective-score.mo8it.com",
|
|
|
|
) {
|
|
|
|
eprintln!("{e:?}");
|
|
|
|
process::exit(1);
|
|
|
|
}
|
|
|
|
}
|