Skip to main content

plan_init

Function plan_init 

Source
pub fn plan_init(
    project_root: &Path,
    entries: &[String],
    answers: &InitAnswers,
) -> Result<Vec<InitAction>>
Expand description

The ordered steps water init performs, decided from the CWD’s top-level listing and the already-resolved answers.

The caller resolves prompts first: every field of answers that is still None is a prompt it must ask (with lockfile_package_manager as the package-manager default) before planning.

§Errors

Returns an error when a referenced frontend path escapes the project root in a way include_web! cannot express, or the answers are inconsistent (--web new combined with --web-mode).