class

Hwaro::CLI::Commands::NewWizard

Inherits Reference / Object

Guided, line-based wizard for hwaro new when no <path> was given and the session is interactive. It asks one question at a time (styled with the shared ember identity), shows a Receipt summary, then confirms before any file is written. It only collects input — the resulting NewOptions flows back through the exact same validate/sanitize/create pipeline the flag form uses, so there is one creation path, not two.

Constants

CONTENT_DIR = "content"

Instance methods

run(options : Config::Options::NewOptions, archetypes : Array(Archetype) = [] of Archetype) : Bool

Mutates options in place and returns true to proceed with creation. Returns false on cancellation — a declined confirmation or an EOF (Ctrl-D) on a required answer — so the caller can bail out cleanly without creating anything.

Any flags already supplied (--title, --tags, …) seed the matching prompt's default, so hwaro new --title "Foo" asks only for the rest.

Source

Nested types