Function clone_template

Source
pub fn clone_template(
    destination_path: &Path,
    folder_name: &str,
    args: &ArgsPlaceholder,
) -> Result<(PathBuf, Vec<String>)>
Expand description

Clone a Loco template to the specified destination folder.

This function takes a destination path, a folder name, and additional generation arguments. It clones the Loco template, prompts the user to select a template, and generates the project in the specified destination folder with the provided arguments.

ยงErrors

  1. when the destination_path is invalid
  2. could not collect templates files
  3. could not prompt template selection to the user