Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public boolean requiresToolDefinitions() {
* Helper implementation for fortify agentic analyzer (faa) tool.
*/
private static final class ToolHelperFortifyAgenticAnalyzer implements IToolHelper {
private static final String TOOL_NAME = "fortify-agentic-analyzer";
private static final String TOOL_NAME = "fortifyaa";

@Override
public String getToolName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import picocli.CommandLine.Command;

/**
* Container command for all 'fcli tool fortify-agentic-analyzer' subcommands.
* Container command for all 'fcli tool fortifyaa' subcommands.
*
* @author Sangamesh Vijaykumar
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@
* without notice.
*/
package com.fortify.cli.tool.faa.cli.cmd;

import java.util.List;

import com.fortify.cli.common.util.PlatformHelper;
import com.fortify.cli.tool._common.cli.cmd.AbstractToolRunCommand;
import com.fortify.cli.tool._common.helper.Tool;
import com.fortify.cli.tool._common.helper.ToolInstallationDescriptor;

import picocli.CommandLine.Command;

Expand All @@ -29,4 +34,10 @@ protected Tool getTool() {
return Tool.FORTIFY_AGENTIC_ANALYZER;
}

@Override
protected List<String> getBaseCommand(ToolInstallationDescriptor descriptor) {
var baseCmd = PlatformHelper.isWindows() ? "fortifyaa.exe" : "fortifyaa";
return List.of(descriptor.getBinPath().resolve(baseCmd).toString());
}

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Make sure none of the commands inherit usage header or description of the top-level fcli command
# Make sure none of the commands inherit usage header or description of the top-level fcli command
# Note that we define these as usage.* whereas our parent bundle defines fcli.usage.* (with fcli prefix).
# For some reason, overriding fcli.usage.* doesn't work.
usage.header =
Expand Down Expand Up @@ -185,6 +185,8 @@ fcli.tool.env.init.usage.description = Detects, registers, and installs Fortify
\n ${fcli.tool.vuln-exporter.envPrefix}_VERSION, ${fcli.tool.vuln-exporter.envPrefix}_HOME\n\
- sourceanalyzer: \
\n ${fcli.tool.sourceanalyzer.envPrefix}_VERSION, ${fcli.tool.sourceanalyzer.envPrefix}_HOME\n\
- fortifyaa: \
\n ${fcli.tool.fortifyaa.envPrefix}_VERSION, ${fcli.tool.fortifyaa.envPrefix}_HOME\n\
\n\
For ScanCentral Client, the init command will look for a compatible JRE based on the following environment variables \
(in this order):\n\
Expand Down Expand Up @@ -500,7 +502,7 @@ fcli.tool.fortifyaa.register.usage.description.1 = Examples:\n\

fcli.tool.fortifyaa.run.usage.header = Run Fortify Agentic Analyzer.
fcli.tool.fortifyaa.run.usage.description = This command allows for running Fortify Agentic Analyzer as already installed in the user's machine. It is recommended to use double dashes to separate \
fcli options from Fortify Agentic Analyzer options, i.e., 'fcli tool fortify-agentic-analyzer run <fcli options> -- <Fortify Agentic Analyzer options>' \
fcli options from Fortify Agentic Analyzer options, i.e., 'fcli tool fortifyaa run <fcli options> -- <Fortify Agentic Analyzer options>' \
to explicitly differentiate between fcli options and Fortify Agentic Analyzer options.
#################################################################################################################
# The following are technical properties that shouldn't be internationalized ####################################
Expand All @@ -509,4 +511,4 @@ fcli.tool.output.table.header.isDefaultMarker =
fcli.tool.output.table.args = name,version,aliasesString,stable,installDir,isDefaultMarker
fcli.tool.list-platforms.output.table.args = platform
fcli.tool.definitions.output.table.args = name,source,lastUpdate
fcli.tool.env.init.output.table.args = name,version,installDir
fcli.tool.env.init.output.table.args = name,version,installDir
Loading