Skip to content

Commit 87c9460

Browse files
fix command name
1 parent 0c3a53b commit 87c9460

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/wrapper/CxConstants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export enum CxConstants {
3030
CMD_AUTH = 'auth',
3131
SUB_CMD_VALIDATE = 'validate',
3232
CMD_PROJECT = 'project',
33-
CMD_ENVIRONMENTS = 'environments',
33+
CMD_DAST_ENVIRONMENTS = 'dast-environments',
3434
SUB_CMD_BRANCHES = 'branches',
3535
CMD_SCAN = 'scan',
3636
SUB_CMD_SHOW = 'show',

src/main/wrapper/CxWrapper.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ export class CxWrapper {
277277

278278
async environmentsList(filters: string): Promise<CxCommandOutput> {
279279
const validated_filters = this.filterArguments(filters);
280-
const commands: string[] = ([CxConstants.CMD_ENVIRONMENTS, CxConstants.SUB_CMD_LIST] as string[]).concat(validated_filters);
280+
const commands: string[] = ([CxConstants.CMD_DAST_ENVIRONMENTS, CxConstants.SUB_CMD_LIST] as string[]).concat(
281+
validated_filters
282+
);
281283
commands.push(...this.initializeCommands(true));
282284
const exec = new ExecutionService();
283285
return await exec.executeCommands(this.config.pathToExecutable, commands, CxConstants.DAST_ENVIRONMENT_TYPE);

0 commit comments

Comments
 (0)