class DocMachine::Config

Overview

Global configuration holds shared runtime settings across commands. It centralizes validation and ensures consistent access patterns.

Direct Known Subclasses

Defined in:

config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(parent_config : DocMachine::Config | Nil = nil) #

Instance Method Detail

def cache_policy : DocMachine::Cache::Policy #

Cache policy is immutable and only available after validation. Accessing it early fails fast with an actionable error.


def cache_root : Path #

Cache root is immutable and only available after validation. Accessing it early fails fast with an actionable error.


def validate! : Nil #

Validation resolves cache root once and builds the cache policy. This keeps failure explicit while deferring side effects until CLI parsing completes.


def verbosity : Log::Severity #

def verbosity=(verbosity : ::Log::Severity) #