struct

Hwaro::Config::Options::InitOptions

Inherits Struct / Value / Object

Constants

LANGUAGE_CODE_REGEX = /\A[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*\z/

BCP 47 subset: primary subtag (2-3 letters) plus optional script/region subtags (2-8 alphanumerics each). Covers "en", "pt-BR", "zh-Hant", "zh-Hant-TW".

Constructors

new(path : String = ".", force : Bool = false, clean : Bool = false, skip_agents_md : Bool = false, skip_sample_content : Bool = false, skip_taxonomies : Bool = false, multilingual_languages : Array(String) = [] of String, scaffold : ScaffoldType = ScaffoldType::Simple, scaffold_remote : String | Nil = nil, agents_mode : AgentsMode = AgentsMode::Remote, minimal_config : Bool = false, full_config : Bool = false, site_title : String | Nil = nil, from_wizard : Bool = false)
Source

Class methods

validate_language_code!(code : String) : Nil
Source

Instance methods

agents_mode
Source
agents_mode=(agents_mode : AgentsMode)
Source
clean
Source
clean=(clean : Bool)
Source
force
Source
force=(force : Bool)
Source
from_wizard

Set by the init wizard so the Initializer skips its own heading and scaffold line — the wizard already rendered them as a receipt.

Source
from_wizard=(from_wizard : Bool)

Set by the init wizard so the Initializer skips its own heading and scaffold line — the wizard already rendered them as a receipt.

Source
full_config
Source
full_config=(full_config : Bool)
Source
minimal_config
Source
minimal_config=(minimal_config : Bool)
Source
multilingual?

Check if multilingual mode is enabled

Source
multilingual_languages
Source
multilingual_languages=(multilingual_languages : Array(String))
Source
path
Source
path=(path : String)
Source
scaffold
Source
scaffold=(scaffold : ScaffoldType)
Source
scaffold_remote
Source
scaffold_remote=(scaffold_remote : String | Nil)
Source
site_title

Site title collected by the interactive init wizard; substituted into the generated config.toml's title = "…" line (built-in scaffolds only — remote scaffold configs are used verbatim).

Source
site_title=(site_title : String | Nil)

Site title collected by the interactive init wizard; substituted into the generated config.toml's title = "…" line (built-in scaffolds only — remote scaffold configs are used verbatim).

Source
skip_agents_md
Source
skip_agents_md=(skip_agents_md : Bool)
Source
skip_sample_content
Source
skip_sample_content=(skip_sample_content : Bool)
Source
skip_taxonomies
Source
skip_taxonomies=(skip_taxonomies : Bool)
Source