docs(core): add more to repair's command-object describe (#18602)

Co-authored-by: Isaac Mann <isaacplmann@gmail.com>
Co-authored-by: Isaac Mann <isaacplmann@users.noreply.github.com>
This commit is contained in:
Josh Goldberg ✨ 2023-09-07 10:04:40 -04:00 committed by GitHub
parent 2cc40a1f32
commit b8bc4609e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 3 deletions

View File

@ -1,12 +1,29 @@
---
title: 'repair - CLI command'
description: 'Repair any configuration that is no longer supported by Nx.'
description: 'Repair any configuration that is no longer supported by Nx.
Specifically, this will run every migration within the `nx` package
against the current repository. Doing so should fix any configuration
details left behind if the repository was previously updated to a new
Nx version without using `nx migrate`.
If your repository has only ever updated to newer versions of Nx with
`nx migrate`, running `nx repair` should do nothing.
'
---
# repair
Repair any configuration that is no longer supported by Nx.
Specifically, this will run every migration within the `nx` package
against the current repository. Doing so should fix any configuration
details left behind if the repository was previously updated to a new
Nx version without using `nx migrate`.
If your repository has only ever updated to newer versions of Nx with
`nx migrate`, running `nx repair` should do nothing.
## Usage
```shell

View File

@ -1,12 +1,29 @@
---
title: 'repair - CLI command'
description: 'Repair any configuration that is no longer supported by Nx.'
description: 'Repair any configuration that is no longer supported by Nx.
Specifically, this will run every migration within the `nx` package
against the current repository. Doing so should fix any configuration
details left behind if the repository was previously updated to a new
Nx version without using `nx migrate`.
If your repository has only ever updated to newer versions of Nx with
`nx migrate`, running `nx repair` should do nothing.
'
---
# repair
Repair any configuration that is no longer supported by Nx.
Specifically, this will run every migration within the `nx` package
against the current repository. Doing so should fix any configuration
details left behind if the repository was previously updated to a new
Nx version without using `nx migrate`.
If your repository has only ever updated to newer versions of Nx with
`nx migrate`, running `nx repair` should do nothing.
## Usage
```shell

View File

@ -3,7 +3,16 @@ import { linkToNxDevAndExamples } from '../yargs-utils/documentation';
export const yargsRepairCommand: CommandModule = {
command: 'repair',
describe: 'Repair any configuration that is no longer supported by Nx.',
describe: `Repair any configuration that is no longer supported by Nx.
Specifically, this will run every migration within the \`nx\` package
against the current repository. Doing so should fix any configuration
details left behind if the repository was previously updated to a new
Nx version without using \`nx migrate\`.
If your repository has only ever updated to newer versions of Nx with
\`nx migrate\`, running \`nx repair\` should do nothing.
`,
builder: (yargs) =>
linkToNxDevAndExamples(yargs, 'repair').option('verbose', {
type: 'boolean',