Uses of Interface
dev.metaschema.cli.processor.ExitStatus
Packages that use ExitStatus
Package
Description
-
Uses of ExitStatus in dev.metaschema.cli
Methods in dev.metaschema.cli that return ExitStatusModifier and TypeMethodDescriptionstatic ExitStatusCLI.runCli(PrintStream outputStream, String... args) Execute a command line with a custom output stream.static ExitStatusExecute a command line. -
Uses of ExitStatus in dev.metaschema.cli.processor
Classes in dev.metaschema.cli.processor that implement ExitStatusModifier and TypeClassDescriptionclassRecords information about the exit status of a CLI command.classAnExitStatusimplementation with an associated message.classAnExitStatusimplementation that represents a status without an associated message.Methods in dev.metaschema.cli.processor that return ExitStatusModifier and TypeMethodDescriptionExitCode.exit()Exit without a message.ExitCode.exitMessage()Exit with the associated message.ExitCode.exitMessage(Object... messageArguments) Exit with the associated message and message arguments.CallingContext.handleError(ExitStatus exitStatus, org.apache.commons.cli.CommandLine cmdLine, boolean showHelp) Handle an error that occurred while executing the command.CallingContext.handleInvalidCommand(String message) Generate the help message and exit status for an invalid command using the provided message.Process a set of CLIProcessor arguments.CallingContext.processCommand()Process the command identified by the CLI arguments.AbstractExitStatus.withThrowable(Throwable throwable) ExitStatus.withThrowable(Throwable throwable) Associate a throwable with the exit status.Methods in dev.metaschema.cli.processor that return types with arguments of type ExitStatusModifier and TypeMethodDescriptionprotected Optional<ExitStatus>CallingContext.checkHelpAndVersion()Check for --help and --version options before full parsing.protected Optional<ExitStatus>CallingContext.validateCalledCommands(org.apache.commons.cli.CommandLine cmdLine) Validate options for all called commands in the chain.protected Optional<ExitStatus>CallingContext.validateExtraArguments(org.apache.commons.cli.CommandLine cmdLine) Validate extra arguments for the target command.Methods in dev.metaschema.cli.processor with parameters of type ExitStatusModifier and TypeMethodDescriptionCallingContext.handleError(ExitStatus exitStatus, org.apache.commons.cli.CommandLine cmdLine, boolean showHelp) Handle an error that occurred while executing the command. -
Uses of ExitStatus in dev.metaschema.cli.processor.command
Methods in dev.metaschema.cli.processor.command that return ExitStatusModifier and TypeMethodDescriptionCommandExecutionException.toExitStatus()Generate anExitStatusbased on this exception.