Package org.egothor.methodatlas.command
Class ManualPrepareCommand
java.lang.Object
org.egothor.methodatlas.command.ManualPrepareCommand
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionManualPrepareCommand(ManualMode.Prepare prepare, CliConfig cliConfig, org.egothor.methodatlas.api.TestDiscoveryConfig discoveryConfig) Creates a new manual-prepare command. -
Method Summary
Modifier and TypeMethodDescriptionintexecute(PrintWriter out) Discovers test classes, writes work files, and reports progress.
-
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 configurationdiscoveryConfig- discovery configuration forwarded to providers
-
-
Method Details
-
execute
Discovers test classes, writes work files, and reports progress.- Specified by:
executein interfaceCommand- Parameters:
out- writer for progress and summary output- Returns:
0if all files were processed successfully,1if any provider encountered a processing error- Throws:
IOException- if traversing a file tree fails
-