Class DiffCommand

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

public final class DiffCommand extends Object implements Command
CLI command handler for the -diff mode.

Compares two MethodAtlas scan CSV outputs and emits a delta report showing added, removed, and modified test methods.

See Also:
  • Constructor Details

    • DiffCommand

      public DiffCommand(Path before, Path after)
      Creates a new diff command.
      Parameters:
      before - path to the before scan CSV
      after - path to the after scan CSV
  • Method Details

    • execute

      public int execute(PrintWriter out) throws IOException
      Computes and emits the delta between the two scan CSV outputs.
      Specified by:
      execute in interface Command
      Parameters:
      out - writer that receives the delta report
      Returns:
      0 always; errors reading the files propagate as IOException
      Throws:
      IOException - if either CSV file cannot be read