cli: add --deps flag to import command

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I19ac6af4c80fe7e86fe8259ed3bf49166a6a6964
This commit is contained in:
raf 2026-02-07 13:25:44 +03:00
commit 63f09b359d
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -13,6 +13,10 @@ pub async fn execute(
config_path: &Path,
) -> Result<()> {
log::info!("Importing modpack from {}", args.file);
log::info!(
"Dependency resolution: {}",
if args.deps { "enabled" } else { "disabled" }
);
let path = Path::new(&args.file);
@ -177,6 +181,7 @@ async fn import_modrinth(
paths: Default::default(),
projects: None,
export_profiles: None,
export_server_side_projects_to_client: None,
};
// Save files using provided paths
@ -352,13 +357,14 @@ async fn import_curseforge(
description: None,
author: manifest["author"]
.as_str()
.map(std::string::ToString::to_string),
.map(|s| s.to_string()),
overrides: vec!["overrides".to_string()],
server_overrides: None,
client_overrides: None,
paths: Default::default(),
projects: None,
export_profiles: None,
export_server_side_projects_to_client: None,
};
// Save files using provided paths