Class WizardCommand

java.lang.Object
eu.svjatoslav.alyverkko_cli.commands.WizardCommand
All Implemented Interfaces:
Command

public class WizardCommand extends Object implements 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:

  1. Load or create configuration
  2. Validate core directory paths
  3. Discover and annotate new models
  4. 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 Details

    • configFileOption

      public eu.svjatoslav.commons.cli_helper.parameter_parser.parameter.FileOption configFileOption
      Optional CLI argument for specifying a configuration file path.
  • Constructor Details

    • WizardCommand

      public WizardCommand()
  • Method Details

    • getCommandName

      public String getCommandName()
      Specified by:
      getCommandName in interface Command
      Returns:
      the subcommand's name.
    • executeCommand

      public void executeCommand(String[] cliArguments) throws IOException
      Description copied from interface: Command
      Called to carry out the specific subcommand. Typically, reads command-line arguments and performs the desired action.
      Specified by:
      executeCommand in interface Command
      Parameters:
      cliArguments - arguments passed after the subcommand name.
      Throws:
      IOException - if I/O operations fail.