Add new argument --custom-yaml to support custom export as yaml format

This commit is contained in:
2025-08-11 11:25:10 +08:00
parent 79657bdb1c
commit a26498e381
12 changed files with 235 additions and 49 deletions

View File

@@ -1746,6 +1746,11 @@ fn main() {
webp_quality: arg.webp_quality,
#[cfg(feature = "circus-img")]
circus_crx_canvas: arg.circus_crx_canvas,
custom_yaml: arg.custom_yaml.unwrap_or_else(|| {
arg.output_type
.map(|s| s == types::OutputScriptType::Yaml)
.unwrap_or(false)
}),
};
match &arg.command {
args::Command::Export { input, output } => {