From 9552865c1dedffc63b15d82eb1711d3758bd0958 Mon Sep 17 00:00:00 2001 From: The Bearodactyl Date: Wed, 28 Aug 2024 09:09:03 -0500 Subject: [PATCH] use @ instead of # for specifying a template branch --- src/template.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/template.rs b/src/template.rs index a40e2ef..4ffcaaf 100644 --- a/src/template.rs +++ b/src/template.rs @@ -35,8 +35,8 @@ fn create_template(template: CreateTemplate) { .nice_unwrap("Unable to create project directory"); } - let (used_template, branch) = if template.template.contains('#') { - template.template.split_once('#').unwrap() + let (used_template, branch) = if template.template.contains('@') { + template.template.split_once('@').unwrap() } else if template.template.contains('/') { (template.template.as_str(), "main") } else if template.template.is_empty() { @@ -177,7 +177,7 @@ pub fn build_template(config: &mut Config, location: Option) { info!("Default: Create a simple mod that adds a button to the main menu."); info!("Minimal: Create a minimal mod with only the necessary files."); info!("Custom Layer: Create a mod with a custom layer and more UI elements."); - info!("Alternatively, you could use your own template: 'user/repo', 'user/repo#branch'"); + info!("Alternatively, you could use your own template: 'user/repo', 'user/repo@branch'"); let template = ask_value("Template", Some(""), false); let final_name = ask_value("Name", possible_name(&location).as_deref(), true);