Class WizardCommand
java.lang.Object
eu.svjatoslav.alyverkko_cli.commands.WizardCommand
- All Implemented Interfaces:
Command
Interactive configuration wizard that helps users validate and fix their configuration files. It performs system checks and offers to fix any missing or invalid paths, discovers new models, and updates the configuration accordingly.
Key workflow steps:
- Load or create configuration
- Validate core directory paths
- Discover and annotate new models
- Save updated configuration
When handling split models (.gguf files with part numbering), the wizard automatically detects base models and only adds part-1 files to the configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptioneu.svjatoslav.commons.cli_helper.parameter_parser.parameter.FileOptionOptional CLI argument for specifying a configuration file path. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteCommand(String[] cliArguments) Called to carry out the specific subcommand.
-
Field Details
-
configFileOption
public eu.svjatoslav.commons.cli_helper.parameter_parser.parameter.FileOption configFileOptionOptional CLI argument for specifying a configuration file path.
-
-
Constructor Details
-
WizardCommand
public WizardCommand()
-
-
Method Details
-
getCommandName
- Specified by:
getCommandNamein interfaceCommand- Returns:
- the subcommand's name.
-
executeCommand
Description copied from interface:CommandCalled to carry out the specific subcommand. Typically, reads command-line arguments and performs the desired action.- Specified by:
executeCommandin interfaceCommand- Parameters:
cliArguments- arguments passed after the subcommand name.- Throws:
IOException- if I/O operations fail.
-