Skip to main content

run_wizard

Function run_wizard 

Source
pub fn run_wizard(no_tui: bool) -> Result<()>
Expand description

Put every global setting in front of the user, and let them change any of it.

Run by hand as devp config wizard, and once automatically — the first time a human types a command on a fresh install, and again after an upgrade that added a setting they have never been shown. Both are the moment a default starts applying to their machine, and the only moment they can be told so before rather than after.

Two implementations, one meaning. [run_wizard_tui] is the full-screen one; the line-by-line [run_wizard_prompts] runs wherever that cannot, which is less a degraded mode than the only honest option on a pipe.