1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-09 10:19:39 +02:00

Add some missing javadoc

This commit is contained in:
Paul Schaub 2023-01-16 19:38:52 +01:00
parent 6c0bb6c627
commit b58861635d
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
17 changed files with 84 additions and 0 deletions

View file

@ -18,6 +18,10 @@ public class PGPainlessCLI {
SopCLI.setSopInstance(new SOPImpl());
}
/**
* Main method of the CLI application.
* @param args arguments
*/
public static void main(String[] args) {
int result = execute(args);
if (result != 0) {
@ -25,6 +29,12 @@ public class PGPainlessCLI {
}
}
/**
* Execute the given command and return the exit code of the program.
*
* @param args command string array (e.g. ["pgpainless-cli", "generate-key", "Alice"])
* @return exit code
*/
public static int execute(String... args) {
return SopCLI.execute(args);
}