swf2xml, xml2swf command stubs

This commit is contained in:
Jindra Petřík
2024-01-20 23:20:15 +01:00
parent b0570fc58a
commit d1935d8e0e
3 changed files with 95 additions and 1 deletions

View File

@@ -42,7 +42,9 @@ import picocli.CommandLine.ScopeType;
Dump.class,
Compress.class,
Decompress.class,
Decrypt.class
Decrypt.class,
Swf2Xml.class,
Xml2Swf.class
},
descriptionHeading = "%n@|bold,underline Description|@:%n",
optionListHeading = "%n@|bold,underline Options|@:%n",

View File

@@ -0,0 +1,46 @@
package com.jpexs.decompiler.flash.cli.commands;
import com.jpexs.decompiler.flash.cli.VersionProvider;
import com.jpexs.decompiler.flash.cli.commands.types.CompressionKind;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
import picocli.CommandLine.Parameters;
import picocli.CommandLine.ParentCommand;
/**
*
* @author JPEXS
*/
@Command(
name = "swf2xml",
mixinStandardHelpOptions = true,
versionProvider = VersionProvider.class,
header = "Convert SWF file to XML",
parameterListHeading = "%n@|bold,underline Parameters|@:%n",
synopsisHeading = "@|bold,underline Usage|@:",
footerHeading = "%n@|bold,underline Example|@:%n",
footer = {
"ffdec-cli swf2xml input.swf out.xml",
}
)
public class Swf2Xml implements Runnable {
@Parameters(
index = "0",
paramLabel = "IN_FILE",
description = "Input file"
)
String inFile;
@Parameters(
index = "1",
paramLabel = "OUT_FILE",
description = "Output file"
)
String outFile;
@Override
public void run() {
}
}

View File

@@ -0,0 +1,46 @@
package com.jpexs.decompiler.flash.cli.commands;
import com.jpexs.decompiler.flash.cli.VersionProvider;
import com.jpexs.decompiler.flash.cli.commands.types.CompressionKind;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
import picocli.CommandLine.Parameters;
import picocli.CommandLine.ParentCommand;
/**
*
* @author JPEXS
*/
@Command(
name = "xml2swf",
mixinStandardHelpOptions = true,
versionProvider = VersionProvider.class,
header = "Convert XML file to SWF",
parameterListHeading = "%n@|bold,underline Parameters|@:%n",
synopsisHeading = "@|bold,underline Usage|@:",
footerHeading = "%n@|bold,underline Example|@:%n",
footer = {
"ffdec-cli xml2swf input.swf out.xml",
}
)
public class Xml2Swf implements Runnable {
@Parameters(
index = "0",
paramLabel = "IN_FILE",
description = "Input file"
)
String inFile;
@Parameters(
index = "1",
paramLabel = "OUT_FILE",
description = "Output file"
)
String outFile;
@Override
public void run() {
}
}