Skip to content

Commit

Permalink
feat(core): make nx prefix customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed May 18, 2022
1 parent 9808e65 commit 80259e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/nx/src/utils/output.ts
Expand Up @@ -36,6 +36,7 @@ if (isCI() && !forceColor) {

class CLIOutput {
readonly X_PADDING = ' ';
cliName = 'NX';

/**
* Longer dash character which forms more of a continuous line when place side to side
Expand Down Expand Up @@ -95,12 +96,12 @@ class CLIOutput {
let nxPrefix = '';
if (chalk[color]) {
nxPrefix = `${chalk[color]('>')} ${chalk.reset.inverse.bold[color](
' NX '
` ${this.cliName} `
)}`;
} else {
nxPrefix = `${chalk.keyword(color)(
'>'
)} ${chalk.reset.inverse.bold.keyword(color)(' NX ')}`;
)} ${chalk.reset.inverse.bold.keyword(color)(` ${this.cliName} `)}`;
}
return `${nxPrefix} ${text}`;
}
Expand Down

1 comment on commit 80259e1

@vercel
Copy link

@vercel vercel bot commented on 80259e1 May 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx.dev
nx-dev-nrwl.vercel.app

Please sign in to comment.