Class ListModelsCommand
java.lang.Object
eu.svjatoslav.alyverkko_cli.commands.ListModelsCommand
- All Implemented Interfaces:
Command
Displays all available AI models in the configured models directory. This command provides a quick overview of currently available models and their metadata.
The implementation:
- Loads the configuration
- Instantiates ModelLibrary
- Prints model details using ModelLibrary's printModels()
This command is primarily intended for administrative use to verify model availability before running tasks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteCommand(String[] cliArguments) Executes the command to load the user's configuration and list all known AI models, printing them to stdout.
-
Constructor Details
-
ListModelsCommand
public ListModelsCommand()
-
-
Method Details
-
getCommandName
- Specified by:
getCommandNamein interfaceCommand- Returns:
- the name of this command, i.e., "listmodels".
-
executeCommand
Executes the command to load the user's configuration and list all known AI models, printing them to stdout.- Specified by:
executeCommandin interfaceCommand- Parameters:
cliArguments- the command-line arguments after "listmodels".- Throws:
IOException- if loading configuration fails.
-