mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-17 16:35:31 +08:00
Add YAML support
This commit is contained in:
@@ -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 => "",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user