Package convex.cli
Class Helpers
java.lang.Object
convex.cli.Helpers
Helpers
Helper functions for the CLI classes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final picocli.CommandLine.Help.ColorScheme
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic File
createTempFile
(String name, String ext) static File
createTempKeystore
(String name, char[] password) static String
static int[]
getPortList
(String[] ports, int count) Gets list of ports from strings containing port rangessplitArrayParameter
(String... parameterValues) Split a parameter list by ','.
-
Field Details
-
usageColourScheme
public static final picocli.CommandLine.Help.ColorScheme usageColourScheme
-
-
Constructor Details
-
Helpers
public Helpers()
-
-
Method Details
-
splitArrayParameter
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
- Throws:
IOException
-
createTempKeystore
public static File createTempKeystore(String name, char[] password) throws IOException, GeneralSecurityException - Throws:
IOException
GeneralSecurityException
-
getPortList
Gets list of ports from strings containing port ranges- Parameters:
ports
- List of ports or port rangescount
- Number of ports to select- Returns:
- Port list, or null if parsing failed
-
getConvexArt
-