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:
parent
2cc40a1f32
commit
b8bc4609e1
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user