Package cs1302.tracer

Class App

java.lang.Object
cs1302.tracer.App

@API(status=STABLE, since="4.0.0") public final class App extends Object
Stable command-line launcher that writes to the process standard streams and may terminate the JVM. Embedding applications use Tracer or BatchTracer.
  • Method Details

    • execute

      public static int execute(String[] args)
      Executes a CLI invocation, returning its exit status when the selected command returns. Subcommands can terminate the calling JVM through System.exit(int) on failure or a controlled stop. The environment-selected Java and compiler must be matching stable JDK 21 or later tools, and the selected JDK must be the running JVM. Environment failures return 1 with stderr diagnostics, including for help and version requests. Arguments and results follow the CLI reference. Embedding callers use Tracer or BatchTracer.
      Parameters:
      args - Command-line arguments.
      Returns:
      CLI exit status if command execution returns; not reached when a subcommand terminates the JVM.
    • main

      public static void main(String[] args) throws Exception
      Executes the command line and terminates the JVM with the resulting exit status.
      Parameters:
      args - Command-line arguments.
      Throws:
      Exception - If command-line startup fails.