1
0
Fork 0
mirror of https://codeberg.org/Mo8it/How_To_Linux.git synced 2024-11-22 14:18:04 +00:00
How_To_Linux/cs/src/main.rs

26 lines
556 B
Rust
Raw Normal View History

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);
}
}