java.lang.Object
dev.metaschema.cli.CLI
The main entry point for the CLI application.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidThe main command line entry point.static dev.metaschema.cli.processor.ExitStatusrunCli(PrintStream outputStream, String... args) Execute a command line with a custom output stream.static dev.metaschema.cli.processor.ExitStatusExecute a command line.
-
Method Details
-
main
The main command line entry point.- Parameters:
args- the command line arguments
-
runCli
Execute a command line.- Parameters:
args- the command line arguments- Returns:
- the execution result
-
runCli
@NonNull public static dev.metaschema.cli.processor.ExitStatus runCli(@Nullable PrintStream outputStream, String... args) Execute a command line with a custom output stream.This method is useful for testing, allowing output to be captured instead of being written directly to the console.
- Parameters:
outputStream- the output stream to write to, ornullto use the default consoleargs- the command line arguments- Returns:
- the execution result
-