Cherry.Build.Options (cherry v0.2.0)

Copy Markdown View Source

Build-time selection options.

today is an explicit input rather than a hidden clock read: future-post filtering is inherently time-dependent, so the time becomes part of the build's inputs and determinism (ADR 0005) is preserved — same inputs, same output.

Summary

Functions

Builds options from a keyword list; today defaults to UTC today.

Types

t()

@type t() :: %Cherry.Build.Options{
  drafts?: boolean(),
  future?: boolean(),
  today: Date.t()
}

Functions

new(opts \\ [])

@spec new(keyword()) :: t()

Builds options from a keyword list; today defaults to UTC today.