mirror of
https://codeberg.org/PGPainless/wkd-java.git
synced 2025-09-09 03:09:39 +02:00
Create basic WKDCLI implementation
This commit is contained in:
parent
a006aa11b9
commit
9abe217de0
8 changed files with 168 additions and 30 deletions
|
@ -4,6 +4,27 @@
|
|||
|
||||
package pgp.wkd.cli;
|
||||
|
||||
import pgp.wkd.cli.command.Fetch;
|
||||
import picocli.CommandLine;
|
||||
|
||||
@CommandLine.Command(
|
||||
subcommands = {
|
||||
CommandLine.HelpCommand.class,
|
||||
Fetch.class
|
||||
}
|
||||
)
|
||||
public class WKDCLI {
|
||||
|
||||
public static void main(String[] args) {
|
||||
int exitCode = execute(args);
|
||||
if (exitCode != 0) {
|
||||
System.exit(exitCode);
|
||||
}
|
||||
}
|
||||
|
||||
public static int execute(String[] args) {
|
||||
return new CommandLine(WKDCLI.class)
|
||||
.setCommandName("wkdcli")
|
||||
.execute(args);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue