Class CLI

java.lang.Object
dev.metaschema.cli.CLI

public final class CLI extends Object
The main entry point for the CLI application.
  • Method Details

    • main

      public static void main(String[] args)
      The main command line entry point.
      Parameters:
      args - the command line arguments
    • runCli

      @NonNull public static dev.metaschema.cli.processor.ExitStatus runCli(String... args)
      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, or null to use the default console
      args - the command line arguments
      Returns:
      the execution result