aoc-toolkit 0.1.0-alpha.4

A toolkit for solving Advent of Code problems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod error;
mod execution;

use crate::runner::commands::result::CommandOutput;

pub use error::print_error;

pub fn print(output: &CommandOutput) {
    match output {
        CommandOutput::Plan(days) => {
            println!("{}", serde_json::json!(days));
        }
        CommandOutput::Execution(report) => {
            execution::print_report(report);
        }
    }
}