Skip to content

Commit c2c06c1

Browse files
authored
fix(core): remove old example and help text from show remnants (#18228)
1 parent 0f1c9d9 commit c2c06c1

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

docs/generated/cli/show.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Show only projects that have a specific target
159159

160160
### project
161161

162-
Show a list of targets in the workspace.
162+
Shows resolved project configuration for a given project.
163163

164164
```shell
165165
nx show project <projectName>
@@ -177,7 +177,7 @@ Show help
177177

178178
Type: `string`
179179

180-
Show targets for the given project
180+
Which project should be viewed?
181181

182182
##### version
183183

docs/generated/packages/nx/documents/show.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Show only projects that have a specific target
159159

160160
### project
161161

162-
Show a list of targets in the workspace.
162+
Shows resolved project configuration for a given project.
163163

164164
```shell
165165
nx show project <projectName>
@@ -177,7 +177,7 @@ Show help
177177

178178
Type: `string`
179179

180-
Show targets for the given project
180+
Which project should be viewed?
181181

182182
##### version
183183

packages/nx/src/command-line/show/command-object.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@ export const yargsShowCommand: CommandModule<
4141
'Show a list of all projects in the workspace'
4242
)
4343
.example(
44-
'$0 show targets',
45-
'Show a list of all targets in the workspace'
44+
'$0 show projects --with-target serve',
45+
'Show a list of all projects in the workspace that have a "serve" target'
46+
)
47+
.example(
48+
'$0 show project [projectName]',
49+
'Shows the resolved configuration for [projectName]'
4650
),
4751
handler: async (args) => {
4852
showHelp();
@@ -96,13 +100,13 @@ const showProjectsCommand: CommandModule<NxShowArgs, ShowProjectsOptions> = {
96100

97101
const showProjectCommand: CommandModule<NxShowArgs, ShowProjectOptions> = {
98102
command: 'project <projectName>',
99-
describe: 'Show a list of targets in the workspace.',
103+
describe: 'Shows resolved project configuration for a given project.',
100104
builder: (yargs) =>
101105
yargs
102106
.positional('projectName', {
103107
type: 'string',
104108
alias: 'p',
105-
description: 'Show targets for the given project',
109+
description: 'Which project should be viewed?',
106110
})
107111
.default('json', true)
108112
.example(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy