fix(dtmt): Fix duplicate prompts
This commit is contained in:
parent
c73b8d2cc9
commit
1decd1ce3a
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ const TEMPLATES: [(&str, &str); 5] = [
|
||||||
"dtmt.cfg",
|
"dtmt.cfg",
|
||||||
r#"id = "{{id}}"
|
r#"id = "{{id}}"
|
||||||
name = "{{name}}"
|
name = "{{name}}"
|
||||||
description = "An elaborate description of my cool game mod!"
|
description = "This is my new mod '{{name}}'!"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
|
||||||
resources = {
|
resources = {
|
||||||
|
@ -60,7 +60,7 @@ return {
|
||||||
"scripts/mods/{{id}}/localization.lua",
|
"scripts/mods/{{id}}/localization.lua",
|
||||||
r#"return {
|
r#"return {
|
||||||
mod_description = {
|
mod_description = {
|
||||||
en = "An elaborate description of my cool game mod!",
|
en = "This is my new mod '{{name}}'!",
|
||||||
},
|
},
|
||||||
}"#,
|
}"#,
|
||||||
),
|
),
|
||||||
|
@ -102,7 +102,7 @@ pub(crate) async fn run(_ctx: sdk::Context, matches: &ArgMatches) -> Result<()>
|
||||||
let name = if let Some(name) = matches.get_one::<String>("name") {
|
let name = if let Some(name) = matches.get_one::<String>("name") {
|
||||||
name.clone()
|
name.clone()
|
||||||
} else {
|
} else {
|
||||||
promptly::prompt("The unique mod ID")?
|
promptly::prompt("The display name")?
|
||||||
};
|
};
|
||||||
|
|
||||||
let id = {
|
let id = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue