modpack ID is now kebab-case version of name
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1fe7ef0f2d
commit
5d3b2eb8b5
|
@ -1,3 +1,4 @@
|
|||
# 0.1.2
|
||||
- optimize curseforge relation meta querying
|
||||
- add debug logging
|
||||
- import and init now set the modpack's ID to a kebab-case version of the name
|
||||
|
|
|
@ -15,6 +15,7 @@ anyhow = "1.0.43"
|
|||
async-trait = "0.1.51"
|
||||
crossterm = "0.21.0"
|
||||
futures = "0.3.16"
|
||||
heck = "0.3.3"
|
||||
indicatif = "0.16.2"
|
||||
json5 = "0.3.0"
|
||||
log = "0.4.14"
|
||||
|
|
|
@ -17,6 +17,7 @@ use addonscript::{
|
|||
};
|
||||
use anyhow::{bail, Context};
|
||||
use crossterm::style::Stylize;
|
||||
use heck::KebabCase;
|
||||
use log::info;
|
||||
use twitch::manifest::Manifest as TwManifest;
|
||||
use url::Url;
|
||||
|
@ -85,8 +86,7 @@ pub async fn run(config: Config, infile: PathBuf) -> anyhow::Result<()> {
|
|||
}
|
||||
|
||||
let manif = Manifest {
|
||||
// TODO convert to snake_case
|
||||
id: data.name.clone(),
|
||||
id: data.name.to_kebab_case(),
|
||||
manifest_type: ManifestType::Modpack,
|
||||
versions: vec![Version {
|
||||
mcversion: vec![data.minecraft.version],
|
||||
|
|
|
@ -31,6 +31,7 @@ use crossterm::{
|
|||
},
|
||||
ExecutableCommand,
|
||||
};
|
||||
use heck::KebabCase;
|
||||
use reqwest::Client;
|
||||
use std::path::Path;
|
||||
use url::Url;
|
||||
|
@ -147,8 +148,7 @@ pub async fn run(
|
|||
tokio::fs::create_dir_all(path.join("overrides")).await?;
|
||||
|
||||
let data = serde_json::to_vec_pretty(&Manifest {
|
||||
// TODO rename this to snake_case
|
||||
id: modpack_name.clone(),
|
||||
id: modpack_name.to_kebab_case(),
|
||||
manifest_type: ManifestType::Modpack,
|
||||
versions: vec![Version {
|
||||
version: "1.0".into(),
|
||||
|
|
Loading…
Reference in a new issue