Skip to content

Commit

Permalink
Adds a "highlight" color option (#11345)
Browse files Browse the repository at this point in the history
  • Loading branch information
cannikin authored Aug 22, 2024
1 parent 450a986 commit a9c39c8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/cli-helpers/src/lib/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import chalk from 'chalk'
export const colors = {
error: chalk.bold.red,
warning: chalk.hex('#ffa500'),
highlight: chalk.hex('#ffa500'),
success: chalk.green,
info: chalk.grey,
bold: chalk.bold,
Expand Down
1 change: 1 addition & 0 deletions packages/cli-packages/dataMigrate/src/lib/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import chalk from 'chalk'
export default {
error: chalk.bold.red,
warning: chalk.hex('#ffa500'),
highlight: chalk.hex('#ffa500'),
success: chalk.green,
info: chalk.grey,
bold: chalk.bold,
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/commands/setup/jobs/jobsHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ const tasks = async ({ force }) => {
${c.success('\nBackground jobs configured!\n')}
${!modelExists ? 'Migrate your database to finish setting up jobs:\n' : ''}
${!modelExists ? c.warning('\n\u00A0\u00A0yarn rw prisma migrate dev\n') : ''}
${!modelExists ? c.highlight('\n\u00A0\u00A0yarn rw prisma migrate dev\n') : ''}
Generate jobs with: ${c.warning('yarn rw g job <name>')}
Execute jobs with: ${c.warning('yarn rw jobs work\n')}
Generate jobs with: ${c.highlight('yarn rw g job <name>')}
Execute jobs with: ${c.highlight('yarn rw jobs work\n')}
Check out the docs for more info:
${c.link('https://docs.redwoodjs.com/docs/background-jobs')}
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/lib/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import chalk from 'chalk'
export default {
error: chalk.bold.red,
warning: chalk.hex('#ffa500'),
highlight: chalk.hex('#ffa500'),
success: chalk.green,
info: chalk.grey,
bold: chalk.bold,
Expand Down

0 comments on commit a9c39c8

Please sign in to comment.