docs(core): update --exclude option to use equal sign (#18592)
This commit is contained in:
parent
98a7477922
commit
692640e9a9
@ -62,7 +62,7 @@ Run tests for all the projects affected by the last commit on main:
|
|||||||
Run build for only projects with the tag `dotnet`:
|
Run build for only projects with the tag `dotnet`:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
nx affected -t build --exclude '*,!tag:dotnet'
|
nx affected -t=build --exclude='*,!tag:dotnet'
|
||||||
```
|
```
|
||||||
|
|
||||||
Use the currently executing project name in your command.:
|
Use the currently executing project name in your command.:
|
||||||
|
|||||||
@ -44,7 +44,7 @@ Show affected projects in the workspace:
|
|||||||
Show affected projects in the workspace, excluding end-to-end projects:
|
Show affected projects in the workspace, excluding end-to-end projects:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
nx show projects --affected --exclude *-e2e
|
nx show projects --affected --exclude=*-e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
Show detailed information about "my-app" in a json format.:
|
Show detailed information about "my-app" in a json format.:
|
||||||
|
|||||||
@ -62,7 +62,7 @@ Run tests for all the projects affected by the last commit on main:
|
|||||||
Run build for only projects with the tag `dotnet`:
|
Run build for only projects with the tag `dotnet`:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
nx affected -t build --exclude '*,!tag:dotnet'
|
nx affected -t=build --exclude='*,!tag:dotnet'
|
||||||
```
|
```
|
||||||
|
|
||||||
Use the currently executing project name in your command.:
|
Use the currently executing project name in your command.:
|
||||||
|
|||||||
@ -44,7 +44,7 @@ Show affected projects in the workspace:
|
|||||||
Show affected projects in the workspace, excluding end-to-end projects:
|
Show affected projects in the workspace, excluding end-to-end projects:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
nx show projects --affected --exclude *-e2e
|
nx show projects --affected --exclude=*-e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
Show detailed information about "my-app" in a json format.:
|
Show detailed information about "my-app" in a json format.:
|
||||||
|
|||||||
@ -65,7 +65,7 @@ export const examples: Record<string, Example[]> = {
|
|||||||
'Run tests for all the projects affected by the last commit on main',
|
'Run tests for all the projects affected by the last commit on main',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
command: "affected -t build --exclude '*,!tag:dotnet'",
|
command: "affected -t=build --exclude='*,!tag:dotnet'",
|
||||||
description: 'Run build for only projects with the tag `dotnet`',
|
description: 'Run build for only projects with the tag `dotnet`',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -370,7 +370,7 @@ export const examples: Record<string, Example[]> = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
command: 'show projects --affected --exclude *-e2e',
|
command: 'show projects --affected --exclude=*-e2e',
|
||||||
description:
|
description:
|
||||||
'Show affected projects in the workspace, excluding end-to-end projects',
|
'Show affected projects in the workspace, excluding end-to-end projects',
|
||||||
},
|
},
|
||||||
|
|||||||
@ -92,7 +92,7 @@ const showProjectsCommand: CommandModule<NxShowArgs, ShowProjectsOptions> = {
|
|||||||
'Show affected projects in the workspace'
|
'Show affected projects in the workspace'
|
||||||
)
|
)
|
||||||
.example(
|
.example(
|
||||||
'$0 show projects --affected --exclude *-e2e',
|
'$0 show projects --affected --exclude=*-e2e',
|
||||||
'Show affected projects in the workspace, excluding end-to-end projects'
|
'Show affected projects in the workspace, excluding end-to-end projects'
|
||||||
) as any,
|
) as any,
|
||||||
handler: (args) => import('./show').then((m) => m.showProjectsHandler(args)),
|
handler: (args) => import('./show').then((m) => m.showProjectsHandler(args)),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user