Function loco_cli::git::clone_template

source ·
pub fn clone_template(
    destination_path: &Path,
    folder_name: &str,
    args: &ArgsPlaceholder
) -> Result<PathBuf>
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