Skip to content

Commit

Permalink
fix(core): remove old example and help text from show remnants (#18228)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder authored Jul 20, 2023
1 parent 0f1c9d9 commit c2c06c1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/generated/cli/show.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Show only projects that have a specific target

### project

Show a list of targets in the workspace.
Shows resolved project configuration for a given project.

```shell
nx show project <projectName>
Expand All @@ -177,7 +177,7 @@ Show help

Type: `string`

Show targets for the given project
Which project should be viewed?

##### version

Expand Down
4 changes: 2 additions & 2 deletions docs/generated/packages/nx/documents/show.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Show only projects that have a specific target

### project

Show a list of targets in the workspace.
Shows resolved project configuration for a given project.

```shell
nx show project <projectName>
Expand All @@ -177,7 +177,7 @@ Show help

Type: `string`

Show targets for the given project
Which project should be viewed?

##### version

Expand Down
12 changes: 8 additions & 4 deletions packages/nx/src/command-line/show/command-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ export const yargsShowCommand: CommandModule<
'Show a list of all projects in the workspace'
)
.example(
'$0 show targets',
'Show a list of all targets in the workspace'
'$0 show projects --with-target serve',
'Show a list of all projects in the workspace that have a "serve" target'
)
.example(
'$0 show project [projectName]',
'Shows the resolved configuration for [projectName]'
),
handler: async (args) => {
showHelp();
Expand Down Expand Up @@ -96,13 +100,13 @@ const showProjectsCommand: CommandModule<NxShowArgs, ShowProjectsOptions> = {

const showProjectCommand: CommandModule<NxShowArgs, ShowProjectOptions> = {
command: 'project <projectName>',
describe: 'Show a list of targets in the workspace.',
describe: 'Shows resolved project configuration for a given project.',
builder: (yargs) =>
yargs
.positional('projectName', {
type: 'string',
alias: 'p',
description: 'Show targets for the given project',
description: 'Which project should be viewed?',
})
.default('json', true)
.example(
Expand Down

1 comment on commit c2c06c1

@vercel
Copy link

@vercel vercel bot commented on c2c06c1 Jul 20, 2023

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-five.vercel.app
nx.dev
nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app

Please sign in to comment.