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
- when the
destination_pathis invalid - could not collect templates files
- could not prompt template selection to the user