Rename modules

This commit is contained in:
Paul Schaub 2025-01-15 13:26:30 +01:00
parent ec4bb0c5db
commit a08340b4e1
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
33 changed files with 11 additions and 16 deletions

View file

@ -0,0 +1,32 @@
package org.pgpainless;
import org.pgpainless.bouncycastle.sop.BouncyCastleSOP;
import picocli.CommandLine;
import sop.cli.picocli.SOPExceptionExitCodeMapper;
import sop.cli.picocli.SOPExecutionExceptionHandler;
import sop.cli.picocli.SopCLI;
public class BcSopCLI {
public static void main(String[] args) {
SopCLI.EXECUTABLE_NAME = "bcsop";
SopCLI.setSopInstance(new BouncyCastleSOP());
System.exit(run(args));
}
public static int run(String[] args)
{
// Set locale
new CommandLine(new SopCLI.InitLocale())
.setUnmatchedArgumentsAllowed(true)
.parseArgs(args);
CommandLine cmd = new CommandLine(SopCLI.class);
cmd.getSubcommands().get("generate-completion").getCommandSpec().usageMessage().hidden(true);
cmd.setCommandName("bcsop");
cmd.setExecutionExceptionHandler(new SOPExecutionExceptionHandler());
cmd.setExitCodeExceptionMapper(new SOPExceptionExitCodeMapper());
cmd.setCaseInsensitiveEnumValuesAllowed(true);
return cmd.execute(args);
}
}