Class Main

java.lang.Object
eu.svjatoslav.alyverkko_cli.Main

public class Main extends Object
The main entry point for the Älyverkko CLI application. It processes subcommands such as "wizard", "selftest", "joinfiles", "mail", and "listmodels".
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The active, loaded configuration for the entire application.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Attempts to find and execute the subcommand specified in the given arguments, or prints a help message if no command is found.
    static void
    main(String[] args)
    Application entry point.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • configuration

      public static Configuration configuration
      The active, loaded configuration for the entire application. May be null if the configuration is not loaded properly.
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args) throws IOException, InterruptedException
      Application entry point. Dispatches to a subcommand if one is specified; otherwise shows usage help.
      Parameters:
      args - command-line arguments; the first is the subcommand name.
      Throws:
      IOException
      InterruptedException
    • handleCommand

      public void handleCommand(String[] args) throws IOException, InterruptedException
      Attempts to find and execute the subcommand specified in the given arguments, or prints a help message if no command is found.
      Parameters:
      args - the command-line arguments.
      Throws:
      IOException - if an I/O error occurs during command execution.
      InterruptedException - if the command is interrupted.