mirror of
https://codeberg.org/PGPainless/wkd-java.git
synced 2024-07-02 16:26:51 +02:00
31 lines
690 B
Java
31 lines
690 B
Java
// SPDX-FileCopyrightText: 2022 Paul Schaub <vanitasvitae@fsfe.org>
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
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);
|
|
}
|
|
}
|