Class PGPainlessCLI


  • public class PGPainlessCLI
    extends java.lang.Object
    This class merely binds PGPainless to SopCLI by injecting a SOPImpl instance. CLI command calls are then simply forwarded to SopCLI.execute(String[]).
    • Constructor Summary

      Constructors 
      Constructor Description
      PGPainlessCLI()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int execute​(java.lang.String... args)
      Execute the given command and return the exit code of the program.
      static void main​(java.lang.String[] args)
      Main method of the CLI application.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PGPainlessCLI

        public PGPainlessCLI()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Main method of the CLI application.
        Parameters:
        args - arguments
      • execute

        public static int execute​(java.lang.String... args)
        Execute the given command and return the exit code of the program.
        Parameters:
        args - command string array (e.g. ["pgpainless-cli", "generate-key", "Alice"])
        Returns:
        exit code