Add YAML support

This commit is contained in:
2025-08-10 11:11:55 +08:00
parent 8f5a5b170f
commit 808c5acd2b
4 changed files with 121 additions and 0 deletions

View File

@@ -60,6 +60,8 @@ pub enum OutputScriptType {
M3t,
/// JSON which can be used for GalTransl
Json,
/// YAML (same as JSON, but with YAML syntax)
Yaml,
/// Custom output
Custom,
}
@@ -75,6 +77,7 @@ impl AsRef<str> for OutputScriptType {
match self {
OutputScriptType::M3t => "m3t",
OutputScriptType::Json => "json",
OutputScriptType::Yaml => "yaml",
OutputScriptType::Custom => "",
}
}