mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-22 20:32:05 +01:00
Improve subcommand descriptions
This commit is contained in:
parent
6382ffb5ae
commit
fb687ee5d1
6 changed files with 12 additions and 6 deletions
|
@ -26,7 +26,8 @@ import java.util.Arrays;
|
|||
|
||||
import static org.pgpainless.sop.Print.err_ln;
|
||||
|
||||
@CommandLine.Command(name = "armor", description = "Add ASCII Armor")
|
||||
@CommandLine.Command(name = "armor",
|
||||
description = "Add ASCII Armor to standard input")
|
||||
public class Armor implements Runnable {
|
||||
|
||||
private static final byte[] BEGIN_ARMOR = "-----BEGIN PGP".getBytes(StandardCharsets.UTF_8);
|
||||
|
|
|
@ -23,7 +23,8 @@ import java.io.IOException;
|
|||
|
||||
import static org.pgpainless.sop.Print.err_ln;
|
||||
|
||||
@CommandLine.Command(name = "dearmor", description = "Remove ASCII Armor")
|
||||
@CommandLine.Command(name = "dearmor",
|
||||
description = "Remove ASCII Armor from standard input")
|
||||
public class Dearmor implements Runnable {
|
||||
|
||||
@Override
|
||||
|
|
|
@ -36,7 +36,8 @@ import java.util.Scanner;
|
|||
import static org.pgpainless.sop.Print.err_ln;
|
||||
import static org.pgpainless.sop.Print.print_ln;
|
||||
|
||||
@CommandLine.Command(name = "encrypt", description = "Encrypt a message")
|
||||
@CommandLine.Command(name = "encrypt",
|
||||
description = "Encrypt a message from standard input")
|
||||
public class Encrypt implements Runnable {
|
||||
|
||||
public enum Type {
|
||||
|
|
|
@ -28,7 +28,8 @@ import picocli.CommandLine;
|
|||
import static org.pgpainless.sop.Print.err_ln;
|
||||
import static org.pgpainless.sop.Print.print_ln;
|
||||
|
||||
@CommandLine.Command(name = "extract-cert", description = "Extract a public key certificate from a secret key")
|
||||
@CommandLine.Command(name = "extract-cert",
|
||||
description = "Extract a public key certificate from a secret key from standard input")
|
||||
public class ExtractCert implements Runnable {
|
||||
|
||||
@CommandLine.Option(names = "--no-armor",
|
||||
|
|
|
@ -34,7 +34,8 @@ import java.io.IOException;
|
|||
import static org.pgpainless.sop.Print.err_ln;
|
||||
import static org.pgpainless.sop.Print.print_ln;
|
||||
|
||||
@CommandLine.Command(name = "sign", description = "Create a detached signature")
|
||||
@CommandLine.Command(name = "sign",
|
||||
description = "Create a detached signature on the data from standard input")
|
||||
public class Sign implements Runnable {
|
||||
|
||||
public enum Type {
|
||||
|
|
|
@ -42,7 +42,8 @@ import java.util.TimeZone;
|
|||
import static org.pgpainless.sop.Print.err_ln;
|
||||
import static org.pgpainless.sop.Print.print_ln;
|
||||
|
||||
@CommandLine.Command(name = "verify", description = "Verify a detached signature")
|
||||
@CommandLine.Command(name = "verify",
|
||||
description = "Verify a detached signature over the data from standard input")
|
||||
public class Verify implements Runnable {
|
||||
|
||||
private static final TimeZone tz = TimeZone.getTimeZone("UTC");
|
||||
|
|
Loading…
Reference in a new issue