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
|
# 0.1.2
|
||||||
- optimize curseforge relation meta querying
|
- optimize curseforge relation meta querying
|
||||||
- add debug logging
|
- 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"
|
async-trait = "0.1.51"
|
||||||
crossterm = "0.21.0"
|
crossterm = "0.21.0"
|
||||||
futures = "0.3.16"
|
futures = "0.3.16"
|
||||||
|
heck = "0.3.3"
|
||||||
indicatif = "0.16.2"
|
indicatif = "0.16.2"
|
||||||
json5 = "0.3.0"
|
json5 = "0.3.0"
|
||||||
log = "0.4.14"
|
log = "0.4.14"
|
||||||
|
|
|
@ -17,6 +17,7 @@ use addonscript::{
|
||||||
};
|
};
|
||||||
use anyhow::{bail, Context};
|
use anyhow::{bail, Context};
|
||||||
use crossterm::style::Stylize;
|
use crossterm::style::Stylize;
|
||||||
|
use heck::KebabCase;
|
||||||
use log::info;
|
use log::info;
|
||||||
use twitch::manifest::Manifest as TwManifest;
|
use twitch::manifest::Manifest as TwManifest;
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
@ -85,8 +86,7 @@ pub async fn run(config: Config, infile: PathBuf) -> anyhow::Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
let manif = Manifest {
|
let manif = Manifest {
|
||||||
// TODO convert to snake_case
|
id: data.name.to_kebab_case(),
|
||||||
id: data.name.clone(),
|
|
||||||
manifest_type: ManifestType::Modpack,
|
manifest_type: ManifestType::Modpack,
|
||||||
versions: vec![Version {
|
versions: vec![Version {
|
||||||
mcversion: vec![data.minecraft.version],
|
mcversion: vec![data.minecraft.version],
|
||||||
|
|
|
@ -31,6 +31,7 @@ use crossterm::{
|
||||||
},
|
},
|
||||||
ExecutableCommand,
|
ExecutableCommand,
|
||||||
};
|
};
|
||||||
|
use heck::KebabCase;
|
||||||
use reqwest::Client;
|
use reqwest::Client;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
@ -147,8 +148,7 @@ pub async fn run(
|
||||||
tokio::fs::create_dir_all(path.join("overrides")).await?;
|
tokio::fs::create_dir_all(path.join("overrides")).await?;
|
||||||
|
|
||||||
let data = serde_json::to_vec_pretty(&Manifest {
|
let data = serde_json::to_vec_pretty(&Manifest {
|
||||||
// TODO rename this to snake_case
|
id: modpack_name.to_kebab_case(),
|
||||||
id: modpack_name.clone(),
|
|
||||||
manifest_type: ManifestType::Modpack,
|
manifest_type: ManifestType::Modpack,
|
||||||
versions: vec![Version {
|
versions: vec![Version {
|
||||||
version: "1.0".into(),
|
version: "1.0".into(),
|
||||||
|
|
Loading…
Reference in a new issue