Skip to main content

setup_with_destinations

Function setup_with_destinations 

Source
pub fn setup_with_destinations(
    opts: &SetupOpts,
    dsts: &BTreeMap<String, PathBuf>,
    prompter: &mut dyn Prompter,
    git: &dyn GitConfig,
) -> Result<SetupReport, SetupError>
Expand description

Run setup with per-section destination paths and optional template sources.

This is the full-featured entry point used by the CLI. Each section name maps to an optional destination path; the writer uses it to read existing content and write the output. For generic_template sections, srcs provides the template source path.