docs(core): update --exclude option to use equal sign (#18592)

This commit is contained in:
Craigory Coppola 2023-08-15 17:12:36 -05:00 committed by GitHub
parent 98a7477922
commit 692640e9a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 7 deletions

View File

@ -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`:
```shell
nx affected -t build --exclude '*,!tag:dotnet'
nx affected -t=build --exclude='*,!tag:dotnet'
```
Use the currently executing project name in your command.:

View File

@ -44,7 +44,7 @@ Show affected projects in the workspace:
Show affected projects in the workspace, excluding end-to-end projects:
```shell
nx show projects --affected --exclude *-e2e
nx show projects --affected --exclude=*-e2e
```
Show detailed information about "my-app" in a json format.:

View File

@ -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`:
```shell
nx affected -t build --exclude '*,!tag:dotnet'
nx affected -t=build --exclude='*,!tag:dotnet'
```
Use the currently executing project name in your command.:

View File

@ -44,7 +44,7 @@ Show affected projects in the workspace:
Show affected projects in the workspace, excluding end-to-end projects:
```shell
nx show projects --affected --exclude *-e2e
nx show projects --affected --exclude=*-e2e
```
Show detailed information about "my-app" in a json format.:

View File

@ -65,7 +65,7 @@ export const examples: Record<string, Example[]> = {
'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`',
},
{
@ -370,7 +370,7 @@ export const examples: Record<string, Example[]> = {
},
{
command: 'show projects --affected --exclude *-e2e',
command: 'show projects --affected --exclude=*-e2e',
description:
'Show affected projects in the workspace, excluding end-to-end projects',
},

View File

@ -92,7 +92,7 @@ const showProjectsCommand: CommandModule<NxShowArgs, ShowProjectsOptions> = {
'Show affected projects in the workspace'
)
.example(
'$0 show projects --affected --exclude *-e2e',
'$0 show projects --affected --exclude=*-e2e',
'Show affected projects in the workspace, excluding end-to-end projects'
) as any,
handler: (args) => import('./show').then((m) => m.showProjectsHandler(args)),