Skip to main content

Module resolve

Module resolve 

Source
Expand description

Turning command line arguments into a concrete plan of work.

Resolution is pure: it takes the parsed arguments, the configuration, a directory and a clock, and produces a Plan whose variants carry exactly what their handler needs. A mode that requires a language cannot be constructed without one, so no downstream code has to re-check.

Enums§

Plan
A fully resolved unit of work.
ResolveError
Errors produced while resolving a plan.

Functions§

default_day
The day to use when none was given: today during the event, otherwise the first puzzle.
latest_available_year
The most recent event that has started on the given date.
plan
Resolves arguments, the working directory and the clock into a Plan.