Package convex.cli

Class Helpers

java.lang.Object
convex.cli.Helpers

public class Helpers extends Object
Helpers Helper functions for the CLI classes.
  • Field Details

    • usageColourScheme

      public static final picocli.CommandLine.Help.ColorScheme usageColourScheme
  • Constructor Details

    • Helpers

      public Helpers()
  • Method Details

    • splitArrayParameter

      public static List<String> splitArrayParameter(String... parameterValues)
      Split a parameter list by ','. Handles internal separators (sublists in strings) Trims resulting Strings of whitespace
      Parameters:
      parameterValues - Array of parameter values
      Returns:
      List of trimmed Strings
    • createTempFile

      public static File createTempFile(String name, String ext) throws IOException
      Throws:
      IOException
    • createTempKeystore

      public static File createTempKeystore(String name, char[] password) throws IOException, GeneralSecurityException
      Throws:
      IOException
      GeneralSecurityException
    • getPortList

      public static int[] getPortList(String[] ports, int count)
      Gets list of ports from strings containing port ranges
      Parameters:
      ports - List of ports or port ranges
      count - Number of ports to select
      Returns:
      Port list, or null if parsing failed
    • getConvexArt

      public static String getConvexArt()