Skip to content

Commit

Permalink
docs(core): cleanup nx commands help after yargs update (#9694)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Apr 5, 2022
1 parent 48769dc commit 1755094
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
4 changes: 2 additions & 2 deletions docs/generated/cli/affected-graph.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: 'affected:graph - CLI command'
description: 'Graph dependencies affected by changes. Alias: affected:dep-graph'
description: 'Graph dependencies affected by changes'
---

# affected:graph

Graph dependencies affected by changes. Alias: affected:dep-graph
Graph dependencies affected by changes

## Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/generated/cli/graph.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: 'graph - CLI command'
description: 'Graph dependencies within workspace. Alias: dep-graph'
description: 'Graph dependencies within workspace'
---

# graph

Graph dependencies within workspace. Alias: dep-graph
Graph dependencies within workspace

## Usage

Expand Down
3 changes: 1 addition & 2 deletions docs/generated/cli/migrate.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: "migrate - CLI command"
description: "Creates a migrations file or runs migrations from the migrations file.
- Migrate packages and create migrations.json (e.g., nx migrate @nrwl/workspace@latest)
- Run migrations (e.g., nx migrate --run-migrations=migrations.json)
"
- Run migrations (e.g., nx migrate --run-migrations=migrations.json)"
---

# migrate
Expand Down
11 changes: 4 additions & 7 deletions packages/nx/src/command-line/nx-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ ${daemonHelpOutput}
You can also use the infix notation to run a target:
(e.g., nx serve myapp --configuration=production)
You can skip the use of Nx cache by using the --skip-nx-cache option.
`,
You can skip the use of Nx cache by using the --skip-nx-cache option.`,
builder: (yargs) => withRunOneOptions(yargs),
handler: async (args) =>
(await import('./run-one')).runOne(process.cwd(), { ...args }),
Expand Down Expand Up @@ -168,8 +167,7 @@ ${daemonHelpOutput}
})
.command({
command: 'affected:graph',
describe:
'Graph dependencies affected by changes. Alias: affected:dep-graph',
describe: 'Graph dependencies affected by changes',
aliases: ['affected:dep-graph'],
builder: (yargs) =>
linkToNxDevAndExamples(
Expand Down Expand Up @@ -205,7 +203,7 @@ ${daemonHelpOutput}

.command({
command: 'graph',
describe: 'Graph dependencies within workspace. Alias: dep-graph',
describe: 'Graph dependencies within workspace',
aliases: ['dep-graph'],
builder: (yargs) =>
linkToNxDevAndExamples(withDepGraphOptions(yargs), 'dep-graph'),
Expand Down Expand Up @@ -252,8 +250,7 @@ ${daemonHelpOutput}
command: 'migrate [packageAndVersion]',
describe: `Creates a migrations file or runs migrations from the migrations file.
- Migrate packages and create migrations.json (e.g., nx migrate @nrwl/workspace@latest)
- Run migrations (e.g., nx migrate --run-migrations=migrations.json)
`,
- Run migrations (e.g., nx migrate --run-migrations=migrations.json)`,
builder: (yargs) =>
linkToNxDevAndExamples(withMigrationOptions(yargs), 'migrate'),
handler: () => runMigration(),
Expand Down

1 comment on commit 1755094

@vercel
Copy link

@vercel vercel bot commented on 1755094 Apr 5, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.