Class CheckerCLI

java.lang.Object
com.luchersol.cli.CheckerCLI
All Implemented Interfaces:
Callable<Integer>

public class CheckerCLI extends Object implements Callable<Integer>
Main class for the command-line interface (CLI) of the library for checks and class generation.

This class uses Picocli to manage commands and subcommands from the command line.

Supported commands:

Example usage from the terminal:

 java -jar checker-cli.jar create-class
 
  • Constructor Details

    • CheckerCLI

      public CheckerCLI()
      Constructs a new CheckerCLI instance.

      Initializes the command-line interface for the Checker application. Currently, no specific setup is performed in the constructor.

  • Method Details

    • main

      public static void main(String[] args)
      Main method that runs the CLI application.

      Creates a CommandLine instance with this class and executes the command received from arguments.

      Parameters:
      args - arguments passed from the command line
    • call

      public Integer call()
      Method executed when no subcommand is specified.

      Prints a message indicating the user should use a subcommand.

      Specified by:
      call in interface Callable<Integer>
      Returns:
      0 if no error occurs