Create basic WKDCLI implementation

This commit is contained in:
Paul Schaub 2022-02-21 14:16:55 +01:00
parent a006aa11b9
commit 9abe217de0
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
8 changed files with 168 additions and 30 deletions

View file

@ -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);
}
}