From ea1881d263568f6c0aab1772d5d796abf584019f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 21 Jan 2024 16:16:21 +0100 Subject: [PATCH] linkreport command stub --- .../flash/cli/commands/LinkReport.java | 53 +++++++++++++++++++ .../decompiler/flash/cli/commands/Main.java | 3 +- 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 libsrc/ffdec_cli/src/com/jpexs/decompiler/flash/cli/commands/LinkReport.java diff --git a/libsrc/ffdec_cli/src/com/jpexs/decompiler/flash/cli/commands/LinkReport.java b/libsrc/ffdec_cli/src/com/jpexs/decompiler/flash/cli/commands/LinkReport.java new file mode 100644 index 000000000..edc1525b5 --- /dev/null +++ b/libsrc/ffdec_cli/src/com/jpexs/decompiler/flash/cli/commands/LinkReport.java @@ -0,0 +1,53 @@ +package com.jpexs.decompiler.flash.cli.commands; + +import com.jpexs.decompiler.flash.cli.VersionProvider; +import com.jpexs.decompiler.flash.cli.commands.types.CompressionKind; +import com.jpexs.decompiler.flash.cli.commands.types.ReplaceFormat; +import java.util.List; +import picocli.CommandLine; +import picocli.CommandLine.Command; +import picocli.CommandLine.Option; +import picocli.CommandLine.Parameters; +import picocli.CommandLine.ParentCommand; +import picocli.CommandLine.ArgGroup; + +/** + * + * @author JPEXS + */ +@Command( + name = "linkreport", + mixinStandardHelpOptions = true, + versionProvider = VersionProvider.class, + header = "Generate linker report for the swffile", + optionListHeading = "%n@|bold,underline Options|@:%n", + parameterListHeading = "%n@|bold,underline Parameters|@:%n", + synopsisHeading = "@|bold,underline Usage|@:", + footerHeading = "%n@|bold,underline Examples|@:%n", + footer = { + "ffdec-cli linkreport input.swf", + "ffdec-cli linkreport --out-file=out.xml input.swf" + }, + sortSynopsis = false +) +public class LinkReport implements Runnable { + + @Option( + names = "--out-file", + paramLabel = "", + description = "Saves XML report to . When ommited, the report is printed to stdout." + ) + String outFile = null; + + @Parameters( + index = "0", + paramLabel = "IN_FILE", + description = "Input file" + ) + String inFile; + + @Override + public void run() { + + } +} diff --git a/libsrc/ffdec_cli/src/com/jpexs/decompiler/flash/cli/commands/Main.java b/libsrc/ffdec_cli/src/com/jpexs/decompiler/flash/cli/commands/Main.java index 3a94fc195..e8a5192bc 100644 --- a/libsrc/ffdec_cli/src/com/jpexs/decompiler/flash/cli/commands/Main.java +++ b/libsrc/ffdec_cli/src/com/jpexs/decompiler/flash/cli/commands/Main.java @@ -56,7 +56,8 @@ import picocli.CommandLine.ScopeType; Deobfuscate.class, EnableDebugging.class, GenerateDoc.class, - InstanceMetadata.class + InstanceMetadata.class, + LinkReport.class }, descriptionHeading = "%n@|bold,underline Description|@:%n", optionListHeading = "%n@|bold,underline Options|@:%n",