feat: export modpacks in CurseForge, Modrinth and MultiMC formats

Add shared export planning, cached scans, exact file selection, safe overwrite confirmation and background TUI progress. Refine sectioned confirmations and allow ordinary content changes while games run.

Invalidate stale export fingerprints on validation failure, preserve ownership and mutation checks, and use ordered lookups for unmatched-file highlighting. Add export, UI, locking and cache-recovery regression tests.
This commit is contained in:
objz committed 2026-10-25 19:12:29 +01:00
1 parent 1bc73258e2
commit 538c37f853
55 files changed
+4746 -448

No files matched your search

+26
View File
@@ -17,3 +17,29 @@ fn parses_instance_list_subcommand() {
"instance list should resolve to the list subcommand"
);
}
#[test]
fn exports_accept_each_format_and_preserve_curseforge_default() {
for format in [None, Some("curseforge"), Some("mrpack"), Some("mmc")] {
let mut args = vec!["rmcl", "export", "Example", "--output", "pack.zip"];
if let Some(format) = format {
args.extend(["--format", format]);
}
let matches = build_command().try_get_matches_from(args).unwrap();
assert_eq!(
matches
.subcommand_matches("export")
.unwrap()
.get_one::<String>("format")
.map(String::as_str),
Some(format.unwrap_or("curseforge"))
);
}
assert!(
build_command()
.try_get_matches_from([
"rmcl", "export", "Example", "--output", "pack.zip", "--format", "unknown"
])
.is_err()
);
}