Skip to content

Commit

Permalink
feat(validate): add a header to show release configs used
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam committed Feb 26, 2024
1 parent 67de28a commit 12d5e71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions packages/sfp-cli/src/commands/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,13 @@ export default class Validate extends SfpCommand {
)}`
)
);
if(this.flags.releaseconfig) {
SFPLogger.log(COLOR_HEADER(`Domains: ${this.flags.releaseconfig}`));
}
if (this.flags.mode != ValidationMode.FAST_FEEDBACK) {
SFPLogger.log(COLOR_HEADER(`Coverage Percentage: ${this.flags.coveragepercent}`));
}
SFPLogger.log(
COLOR_HEADER(`Dependency Validation: ${this.flags.enabledependencyvalidation ? 'true' : 'false'}`)
);



SFPLogger.printHeaderLine('',COLOR_HEADER,LoggerLevel.INFO);
Expand Down
5 changes: 4 additions & 1 deletion packages/sfp-cli/src/commands/validateAgainstOrg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import SFPLogger, { COLOR_HEADER, COLOR_KEY_MESSAGE } from '@flxblio/sfp-logger'
import * as fs from 'fs-extra';
import ValidateError from '../errors/ValidateError';
import ValidateResult from '../impl/validate/ValidateResult';
import { loglevel, logsgroupsymbol, requiredUserNameFlag, targetdevhubusername } from '../flags/sfdxflags';
import { arrayFlagSfdxStyle, loglevel, logsgroupsymbol, requiredUserNameFlag, targetdevhubusername } from '../flags/sfdxflags';
import { Flags } from '@oclif/core';


Expand Down Expand Up @@ -81,6 +81,9 @@ export default class ValidateAgainstOrg extends SfpCommand {

SFPLogger.log(COLOR_HEADER(`command: ${COLOR_KEY_MESSAGE(`validateAgainstOrg`)}`));
SFPLogger.log(COLOR_HEADER(`Target Org: ${this.flags.targetorg}`));
if(this.flags.releaseconfig) {
SFPLogger.log(COLOR_HEADER(`Domains: ${this.flags.releaseconfig}`));
}
SFPLogger.log(
COLOR_HEADER(
`Validation Mode: ${COLOR_KEY_MESSAGE(
Expand Down

0 comments on commit 12d5e71

Please sign in to comment.