forked from dxatscale/sfpowerscripts
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dependency:install): add release def filter v2 (#108)
* feat(dependency:install): add release def filter * fix(fht): fht/ft not being applied for post deployment (#101) * fix(fht): fht/ft not being applied for post deployment * chore: remove unecessary workingDirectory attribute on fht yml file path * Revert "chore: remove unecessary workingDirectory attribute on fht yml file path" This reverts commit a82cd0a. * chore: set default value for working directory * fix: release parameter and display header info * fix: release parameter and display header info * chore: refactor command log * chore: remove unecessary var * chore: refact command logger constructor * refactor(logger): refactor methods to better naming * refactor(logger): refactor methods to better naming * refactor(logger): refactor methods to better naming * chore: rename commandLogger to CommandHeaderDisplayer * refactor(logger): add default contructor value --------- Co-authored-by: Alan Jaouen <[email protected]>
- Loading branch information
1 parent
6138447
commit 644f700
Showing
4 changed files
with
67 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"commandDescription":"Install all the external dependencies of a given project", | ||
"installationkeysFlagDescription":"Installation key for key-protected packages (format is packagename:key --> core:key nCino:key vlocity:key to allow some packages without installation key)" | ||
} | ||
"commandDescription":"Install all the external dependencies of a given project", | ||
"configFileFlagDescription":"Path to the config file which determines which external dependency are being installed based on packages in release config", | ||
"installationkeysFlagDescription":"Installation key for key-protected packages (format is packagename:key --> core:key nCino:key vlocity:key to allow some packages without installation key)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import SFPLogger, {COLOR_HEADER, COLOR_KEY_MESSAGE, ConsoleLogger, Logger, LoggerLevel} from "@flxbl-io/sfp-logger"; | ||
|
||
export default class CommandHeaderDisplayer { | ||
|
||
private loggerLevel: LoggerLevel; | ||
private readonly logger: Logger; | ||
|
||
constructor(logger: Logger = new ConsoleLogger()) { | ||
this.logger = logger; | ||
} | ||
|
||
public headerLine(): CommandHeaderDisplayer { | ||
SFPLogger.printHeaderLine('', COLOR_HEADER, this.loggerLevel, this.logger); | ||
return this; | ||
} | ||
|
||
public headerAttribute(attribute, value?): CommandHeaderDisplayer { | ||
SFPLogger.log(`${COLOR_HEADER(attribute)} : ${value}`, this.loggerLevel, this.logger); | ||
return this; | ||
} | ||
|
||
public headerAttributeIf(condition: boolean, attribute, value?): CommandHeaderDisplayer { | ||
if (condition) { | ||
SFPLogger.log(`${COLOR_HEADER(attribute)} : ${value}`, this.loggerLevel, this.logger); | ||
} | ||
return this; | ||
} | ||
} |