cmd/run

Types

pub type Err {
  Undef
  RunFailed
  FailedToReadInput(String)
  Unrecognized(Day)
  Other(String)
}

Constructors

  • Undef
  • RunFailed
  • FailedToReadInput(String)
  • Unrecognized(Day)
  • Other(String)

Functions

pub external fn do_run(
  fn(String) -> Solution,
  String,
) -> gleam.Result(Solution, Err)
pub fn register_command(cli: Command(Result(List(String), Snag)), runners: Map(
    Int,
    fn(String) -> #(Int, Int),
  )) -> Command(Result(List(String), Snag))
pub fn run(input: CommandInput, runners: Map(
    Int,
    fn(String) -> #(Int, Int),
  ), run_all: Bool) -> Result(List(String), Snag)