From 692640e9a92f7723bc5536690e1dcff4492f862b Mon Sep 17 00:00:00 2001 From: Craigory Coppola Date: Tue, 15 Aug 2023 17:12:36 -0500 Subject: [PATCH] docs(core): update --exclude option to use equal sign (#18592) --- docs/generated/cli/affected.md | 2 +- docs/generated/cli/show.md | 2 +- docs/generated/packages/nx/documents/affected.md | 2 +- docs/generated/packages/nx/documents/show.md | 2 +- packages/nx/src/command-line/examples.ts | 4 ++-- packages/nx/src/command-line/show/command-object.ts | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/generated/cli/affected.md b/docs/generated/cli/affected.md index 0071512f33..e97398da1c 100644 --- a/docs/generated/cli/affected.md +++ b/docs/generated/cli/affected.md @@ -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.: diff --git a/docs/generated/cli/show.md b/docs/generated/cli/show.md index 0c22a98934..ab1064f598 100644 --- a/docs/generated/cli/show.md +++ b/docs/generated/cli/show.md @@ -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.: diff --git a/docs/generated/packages/nx/documents/affected.md b/docs/generated/packages/nx/documents/affected.md index 0071512f33..e97398da1c 100644 --- a/docs/generated/packages/nx/documents/affected.md +++ b/docs/generated/packages/nx/documents/affected.md @@ -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.: diff --git a/docs/generated/packages/nx/documents/show.md b/docs/generated/packages/nx/documents/show.md index 0c22a98934..ab1064f598 100644 --- a/docs/generated/packages/nx/documents/show.md +++ b/docs/generated/packages/nx/documents/show.md @@ -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.: diff --git a/packages/nx/src/command-line/examples.ts b/packages/nx/src/command-line/examples.ts index e5d1b65346..fc76f3e379 100644 --- a/packages/nx/src/command-line/examples.ts +++ b/packages/nx/src/command-line/examples.ts @@ -65,7 +65,7 @@ export const examples: Record = { '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 = { }, { - command: 'show projects --affected --exclude *-e2e', + command: 'show projects --affected --exclude=*-e2e', description: 'Show affected projects in the workspace, excluding end-to-end projects', }, diff --git a/packages/nx/src/command-line/show/command-object.ts b/packages/nx/src/command-line/show/command-object.ts index 00522c9205..f445537e24 100644 --- a/packages/nx/src/command-line/show/command-object.ts +++ b/packages/nx/src/command-line/show/command-object.ts @@ -92,7 +92,7 @@ const showProjectsCommand: CommandModule = { '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)),