Class ManualPrepareCommand

java.lang.Object
org.egothor.methodatlas.command.ManualPrepareCommand
All Implemented Interfaces:
Command

public final class ManualPrepareCommand extends Object implements Command
CLI command handler for the -manual-prepare mode.

Discovers test classes via the configured TestDiscovery providers, then writes one work file per class to the prepare work directory. No CSV output is produced; only progress lines are written to the supplied PrintWriter.

See Also:
  • Constructor Details

    • ManualPrepareCommand

      public ManualPrepareCommand(ManualMode.Prepare prepare, CliConfig cliConfig, org.egothor.methodatlas.api.TestDiscoveryConfig discoveryConfig)
      Creates a new manual-prepare command.
      Parameters:
      prepare - manual prepare mode configuration (work and response dirs)
      cliConfig - full parsed CLI configuration
      discoveryConfig - discovery configuration forwarded to providers
  • Method Details

    • execute

      public int execute(PrintWriter out) throws IOException
      Discovers test classes, writes work files, and reports progress.
      Specified by:
      execute in interface Command
      Parameters:
      out - writer for progress and summary output
      Returns:
      0 if all files were processed successfully, 1 if any provider encountered a processing error
      Throws:
      IOException - if traversing a file tree fails