diff --git a/wkd-java-cli/src/main/java/pgp/wkd/cli/WKDCLI.java b/wkd-java-cli/src/main/java/pgp/wkd/cli/WKDCLI.java index 4fed57d..9615cc4 100644 --- a/wkd-java-cli/src/main/java/pgp/wkd/cli/WKDCLI.java +++ b/wkd-java-cli/src/main/java/pgp/wkd/cli/WKDCLI.java @@ -11,7 +11,7 @@ import picocli.CommandLine; @CommandLine.Command( name = "wkd", - description = "Interact with the Web Key Directory", + resourceBundle = "msg_wkd", subcommands = { CommandLine.HelpCommand.class, GetCmd.class diff --git a/wkd-java-cli/src/main/java/pgp/wkd/cli/command/GetCmd.java b/wkd-java-cli/src/main/java/pgp/wkd/cli/command/GetCmd.java index b5d7c05..1606897 100644 --- a/wkd-java-cli/src/main/java/pgp/wkd/cli/command/GetCmd.java +++ b/wkd-java-cli/src/main/java/pgp/wkd/cli/command/GetCmd.java @@ -21,22 +21,18 @@ import java.io.OutputStream; @CommandLine.Command( name = "get", - description = "Get an OpenPGP Certificate via the Web Key Directory" + resourceBundle = "msg_get" ) public class GetCmd implements Runnable { @CommandLine.Parameters( index = "0", arity = "1", - paramLabel = "USERID", - description = "Certificate User-ID" - ) + paramLabel = "USERID") String userId; @CommandLine.Option( - names = {"-a", "--armor"}, - description = "ASCII Armor the output" - ) + names = {"-a", "--armor"}) boolean armor = false; public static final CertificateDiscoverer DEFAULT_DISCOVERER = new ValidatingCertificateDiscoverer( diff --git a/wkd-java-cli/src/main/resources/msg_get.properties b/wkd-java-cli/src/main/resources/msg_get.properties new file mode 100644 index 0000000..e3d5714 --- /dev/null +++ b/wkd-java-cli/src/main/resources/msg_get.properties @@ -0,0 +1,12 @@ +# SPDX-FileCopyrightText: 2022 Paul Schaub +# +# SPDX-License-Identifier: Apache-2.0 +usage.header=Get an OpenPGP Certificate via the Web Key Directory +USERID[0]=Certificate User-ID +armor=ASCII Armor the output + +# Generic TODO: Remove when bumping picocli to 4.7.0 +usage.synopsisHeading=Usage:\u0020 +usage.commandListHeading = %nCommands:%n +usage.optionListHeading = %nOptions:%n +usage.footerHeading=Powered by picocli%n diff --git a/wkd-java-cli/src/main/resources/msg_get_de.properties b/wkd-java-cli/src/main/resources/msg_get_de.properties new file mode 100644 index 0000000..dc1e396 --- /dev/null +++ b/wkd-java-cli/src/main/resources/msg_get_de.properties @@ -0,0 +1,12 @@ +# SPDX-FileCopyrightText: 2022 Paul Schaub +# +# SPDX-License-Identifier: Apache-2.0 +usage.header=Empfange ein OpenPGP Zertifikat mithilfe des Web Key Directory +USERID[0]=Nutzeridentität des Zertifikats +armor=Schütze die Ausgabe mit ASCII Armor + +# Generic TODO: Remove when bumping picocli to 4.7.0 +usage.synopsisHeading=Aufruf:\u0020 +usage.commandListHeading=%nBefehle:%n +usage.optionListHeading = %nOptionen:%n +usage.footerHeading=Powered by Picocli%n diff --git a/wkd-java-cli/src/main/resources/msg_wkd.properties b/wkd-java-cli/src/main/resources/msg_wkd.properties new file mode 100644 index 0000000..cd73615 --- /dev/null +++ b/wkd-java-cli/src/main/resources/msg_wkd.properties @@ -0,0 +1,10 @@ +# SPDX-FileCopyrightText: 2022 Paul Schaub +# +# SPDX-License-Identifier: Apache-2.0 +usage.header=Interact with the Web Key Directory + +# Generic TODO: Remove when bumping picocli to 4.7.0 +usage.synopsisHeading=Usage:\u0020 +usage.commandListHeading = %nCommands:%n +usage.optionListHeading = %nOptions:%n +usage.footerHeading=Powered by picocli%n diff --git a/wkd-java-cli/src/main/resources/msg_wkd_de.properties b/wkd-java-cli/src/main/resources/msg_wkd_de.properties new file mode 100644 index 0000000..b87f2a8 --- /dev/null +++ b/wkd-java-cli/src/main/resources/msg_wkd_de.properties @@ -0,0 +1,10 @@ +# SPDX-FileCopyrightText: 2022 Paul Schaub +# +# SPDX-License-Identifier: Apache-2.0 +usage.header=Interagiere mit dem Web Key Directory + +# Generic TODO: Remove when bumping picocli to 4.7.0 +usage.synopsisHeading=Aufruf:\u0020 +usage.commandListHeading=%nBefehle:%n +usage.optionListHeading = %nOptionen:%n +usage.footerHeading=Powered by Picocli%n