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
use crate::runner::commands::result::CommandOutput;
use crate::runner::context::CommandContext;
use crate::runner::error::CommandError;

pub mod result;
pub mod run;

pub type CommandResult = Result<CommandOutput, CommandError>;

pub trait Command {
    fn execute(self, ctx: &CommandContext<'_>) -> CommandResult;
}