Package org.egothor.methodatlas.command
Class GitHubAnnotationsCommand
java.lang.Object
org.egothor.methodatlas.command.GitHubAnnotationsCommand
- All Implemented Interfaces:
Command
CLI command handler for the
-github-annotations output mode.
Scans one or more source roots and emits GitHub Actions ::notice and
::warning workflow commands for security-relevant test methods.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGitHubAnnotationsCommand(CliConfig cliConfig, org.egothor.methodatlas.api.TestDiscoveryConfig discoveryConfig, AiSuggestionEngine aiEngine, ClassificationOverride override, AiResultCache aiCache) Creates a new GitHub Annotations command. -
Method Summary
Modifier and TypeMethodDescriptionintexecute(PrintWriter out) Scans all roots and emits GitHub Actions workflow commands.
-
Constructor Details
-
GitHubAnnotationsCommand
public GitHubAnnotationsCommand(CliConfig cliConfig, org.egothor.methodatlas.api.TestDiscoveryConfig discoveryConfig, AiSuggestionEngine aiEngine, ClassificationOverride override, AiResultCache aiCache) Creates a new GitHub Annotations command.- Parameters:
cliConfig- full parsed CLI configurationdiscoveryConfig- discovery configuration forwarded to providersaiEngine- AI engine providing suggestions;nullwhen AI is disabledoverride- human classification overridesaiCache- AI result cache
-
-
Method Details
-
execute
Scans all roots and emits GitHub Actions workflow commands.- Specified by:
executein interfaceCommand- Parameters:
out- writer that receives the workflow command lines- Returns:
0if all files were processed successfully,1if any file produced a parse or processing error- Throws:
IOException- if traversing a file tree fails
-