Package eu.svjatoslav.alyverkko_cli
Class Main
java.lang.Object
eu.svjatoslav.alyverkko_cli.Main
The main entry point for the Älyverkko CLI application.
It processes subcommands such as "wizard", "selftest", "joinfiles",
"mail", and "listmodels".
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ConfigurationThe active, loaded configuration for the entire application. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleCommand(String[] args) Attempts to find and execute the subcommand specified in the given arguments, or prints a help message if no command is found.static voidApplication entry point.
-
Field Details
-
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
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:
IOExceptionInterruptedException
-
handleCommand
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.
-