MCPcopy
hub / github.com/remkop/picocli / IParseResultHandler

Interface IParseResultHandler

src/main/java/picocli/CommandLine.java:1596–1609  ·  view source on GitHub ↗

Represents a function that can process a List of CommandLine objects resulting from successfully plain #parse(String...) parsing the command line arguments. This is a functional interface w

Source from the content-addressed store, hash-verified

1594 * @deprecated Use {@link IExecutionStrategy} instead.
1595 * @since 2.0 */
1596 @Deprecated public interface IParseResultHandler {
1597 /** Processes a List of {@code CommandLine} objects resulting from successfully
1598 * {@linkplain #parse(String...) parsing} the command line arguments and optionally returns a list of results.
1599 * @param parsedCommands the {@code CommandLine} objects that resulted from successfully parsing the command line arguments
1600 * @param out the {@code PrintStream} to print help to if requested
1601 * @param ansi for printing help messages using ANSI styles and colors
1602 * @return a list of results, or an empty list if there are no results
1603 * @throws ParameterException if a help command was invoked for an unknown subcommand. Any {@code ParameterExceptions}
1604 * thrown from this method are treated as if this exception was thrown during parsing and passed to the {@link IExceptionHandler}
1605 * @throws ExecutionException if a problem occurred while processing the parse results; use
1606 * {@link ExecutionException#getCommandLine()} to get the command or subcommand where processing failed
1607 */
1608 List<Object> handleParseResult(List<CommandLine> parsedCommands, PrintStream out, Help.Ansi ansi) throws ExecutionException;
1609 }
1610
1611 /**
1612 * Represents a function that can process the {@code ParseResult} object resulting from successfully

Implementers 5

RunFirstsrc/main/java/picocli/CommandLine.java
RunLastsrc/main/java/picocli/CommandLine.java
RunAllsrc/main/java/picocli/CommandLine.java
ExecuteLegacyTestsrc/test/java/picocli/ExecuteLegacyTes
AbstractParseResultHandlersrc/main/java/picocli/CommandLine.java

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…