Package org.egothor.methodatlas.command
Interface Command
- All Known Implementing Classes:
ApplyTagsCommand,ApplyTagsFromCsvCommand,DiffCommand,GitHubAnnotationsCommand,ManualPrepareCommand,SarifCommand,ScanCommand
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A self-contained CLI command handler.
Each implementation encapsulates one logical CLI mode (scan, diff,
apply-tags, etc.). The implementation is responsible for all orchestration
steps needed by that mode and writes its output to the supplied
PrintWriter.
Command objects are constructed with all parameters they need — configuration,
pre-built engine instances, I/O paths — and executed via execute(java.io.PrintWriter).
The MethodAtlasApp routing layer selects the
right implementation based on the parsed command-line flags, then delegates
to it.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintexecute(PrintWriter out) Executes this command and returns an exit code.
-
Method Details
-
execute
Executes this command and returns an exit code.- Parameters:
out- writer that receives all output produced by this command- Returns:
0on success;1when one or more files could not be processed or a configured limit was exceeded- Throws:
IOException- if I/O fails in a way that prevents the command from completing
-