Skip to content

Commit 99b822c

Browse files
clarencedbestander
authored andcommitted
Add legend colors 3454 (#3561)
* Color legends added for upgrade-interactive * Updated the legend color message
1 parent 27e9922 commit 99b822c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/cli/commands/upgrade-interactive.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ export async function run(config: Config, reporter: Reporter, flags: Object, arg
8888
);
8989

9090
try {
91+
const red = reporter.format.red('<red>');
92+
const yellow = reporter.format.yellow('<yellow>');
93+
reporter.info(reporter.lang('legendColorsForUpgradeInteractive', red, yellow));
94+
9195
const answers: Array<Dependency> = await reporter.prompt('Choose which packages to update.', choices, {
9296
name: 'packages',
9397
type: 'checkbox',

src/reporters/lang/en.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ const messages = {
9393
jsonError: 'Error parsing JSON at $0, $1.',
9494
noFilePermission: "We don't have permissions to touch the file $0.",
9595
allDependenciesUpToDate: 'All of your dependencies are up to date.',
96+
legendColorsForUpgradeInteractive: 'Color legend : \n $0 : Patch Update Backward-compatible bug fixes \n $1 : Minor Update backward-compatibles features',
9697
frozenLockfileError: 'Your lockfile needs to be updated, but yarn was run with `--frozen-lockfile`.',
9798
fileWriteError: 'Could not write file $0: $1',
9899
multiplePackagesCantUnpackInSameDestination: 'Pattern $0 is trying to unpack in the same destination $1 as pattern $2. This could result in a non deterministic behavior, skipping.',

0 commit comments

Comments
 (0)