Skip to content

Commit

Permalink
fix(core): migrate to yargs 17.x
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Mar 29, 2022
1 parent bab515e commit 83c8516
Show file tree
Hide file tree
Showing 17 changed files with 180 additions and 567 deletions.
24 changes: 0 additions & 24 deletions docs/generated/cli/affected-apps.md
Expand Up @@ -15,26 +15,6 @@ nx affected:apps

[Install `nx` globally](/getting-started/nx-setup#install-nx) to invoke the command directly using `nx`, or use `npx nx`, `yarn nx`, or `pnpx nx`.

### Examples

Print the names of all the apps affected by changing the index.ts file:

```bash
nx affected:apps --files=libs/mylib/src/index.ts
```

Print the names of all the apps affected by the changes between main and HEAD (e.g., PR):

```bash
nx affected:apps --base=main --head=HEAD
```

Print the names of all the apps affected by the last commit on main:

```bash
nx affected:apps --base=main~1 --head=main
```

## Options

### all
Expand Down Expand Up @@ -69,8 +49,6 @@ Show help

### ~~only-failed~~

Default: `false`

**Deprecated:** The command to rerun failed projects will appear if projects fail. This now does nothing and will be removed in v15.

Isolate projects which previously failed
Expand All @@ -85,8 +63,6 @@ This is the name of the tasks runner configured in nx.json

### skip-nx-cache

Default: `false`

Rerun the tasks even when the results are available in the cache

### uncommitted
Expand Down
44 changes: 0 additions & 44 deletions docs/generated/cli/affected-graph.md
Expand Up @@ -15,44 +15,6 @@ nx affected:graph

[Install `nx` globally](/getting-started/nx-setup#install-nx) to invoke the command directly using `nx`, or use `npx nx`, `yarn nx`, or `pnpx nx`.

### Examples

Open the project graph of the workspace in the browser, and highlight the projects affected by changing the index.ts file:

```bash
nx affected:graph --files=libs/mylib/src/index.ts
```

Open the project graph of the workspace in the browser, and highlight the projects affected by the changes between main and HEAD (e.g., PR):

```bash
nx affected:graph --base=main --head=HEAD
```

Save the project graph of the workspace in a json file, and highlight the projects affected by the changes between main and HEAD (e.g., PR):

```bash
nx affected:graph --base=main --head=HEAD --file=output.json
```

Generate a static website with project graph data in an html file, highlighting the projects affected by the changes between main and HEAD (e.g., PR):

```bash
nx affected:graph --base=main --head=HEAD --file=output.html
```

Open the project graph of the workspace in the browser, and highlight the projects affected by the last commit on main:

```bash
nx affected:graph --base=main~1 --head=main
```

Open the project graph of the workspace in the browser, highlight the projects affected, but exclude project-one and project-two:

```bash
nx affected:graph --exclude=project-one,project-two
```

## Options

### all
Expand Down Expand Up @@ -103,8 +65,6 @@ Bind the project graph server to a specific ip address.

### ~~only-failed~~

Default: `false`

**Deprecated:** The command to rerun failed projects will appear if projects fail. This now does nothing and will be removed in v15.

Isolate projects which previously failed
Expand All @@ -125,8 +85,6 @@ This is the name of the tasks runner configured in nx.json

### skip-nx-cache

Default: `false`

Rerun the tasks even when the results are available in the cache

### uncommitted
Expand All @@ -147,6 +105,4 @@ Show version number

### watch

Default: `false`

Watch for changes to project graph and update in-browser
24 changes: 0 additions & 24 deletions docs/generated/cli/affected-libs.md
Expand Up @@ -15,26 +15,6 @@ nx affected:libs

[Install `nx` globally](/getting-started/nx-setup#install-nx) to invoke the command directly using `nx`, or use `npx nx`, `yarn nx`, or `pnpx nx`.

### Examples

Print the names of all the libs affected by changing the index.ts file:

```bash
nx affected:libs --files=libs/mylib/src/index.ts
```

Print the names of all the libs affected by the changes between main and HEAD (e.g., PR):

```bash
nx affected:libs --base=main --head=HEAD
```

Print the names of all the libs affected by the last commit on main:

```bash
nx affected:libs --base=main~1 --head=main
```

## Options

### all
Expand Down Expand Up @@ -69,8 +49,6 @@ Show help

### ~~only-failed~~

Default: `false`

**Deprecated:** The command to rerun failed projects will appear if projects fail. This now does nothing and will be removed in v15.

Isolate projects which previously failed
Expand All @@ -85,8 +63,6 @@ This is the name of the tasks runner configured in nx.json

### skip-nx-cache

Default: `false`

Rerun the tasks even when the results are available in the cache

### uncommitted
Expand Down
42 changes: 0 additions & 42 deletions docs/generated/cli/affected.md
Expand Up @@ -15,44 +15,6 @@ nx affected

[Install `nx` globally](/getting-started/nx-setup#install-nx) to invoke the command directly using `nx`, or use `npx nx`, `yarn nx`, or `pnpx nx`.

### Examples

Run custom target for all affected projects:

```bash
nx affected --target=custom-target
```

Run tests in parallel:

```bash
nx affected --target=test --parallel=5
```

Run the test target for all projects:

```bash
nx affected --target=test --all
```

Run tests for all the projects affected by changing the index.ts file:

```bash
nx affected --target=test --files=libs/mylib/src/index.ts
```

Run tests for all the projects affected by the changes between main and HEAD (e.g., PR):

```bash
nx affected --target=test --base=main --head=HEAD
```

Run tests for all the projects affected by the last commit on main:

```bash
nx affected --target=test --base=main~1 --head=main
```

## Options

### all
Expand Down Expand Up @@ -87,8 +49,6 @@ Show help

### ~~only-failed~~

Default: `false`

**Deprecated:** The command to rerun failed projects will appear if projects fail. This now does nothing and will be removed in v15.

Isolate projects which previously failed
Expand All @@ -103,8 +63,6 @@ This is the name of the tasks runner configured in nx.json

### skip-nx-cache

Default: `false`

Rerun the tasks even when the results are available in the cache

### target
Expand Down
4 changes: 0 additions & 4 deletions docs/generated/cli/format-check.md
Expand Up @@ -53,8 +53,6 @@ Format only libraries and applications files.

### ~~only-failed~~

Default: `false`

**Deprecated:** The command to rerun failed projects will appear if projects fail. This now does nothing and will be removed in v15.

Isolate projects which previously failed
Expand All @@ -69,8 +67,6 @@ This is the name of the tasks runner configured in nx.json

### skip-nx-cache

Default: `false`

Rerun the tasks even when the results are available in the cache

### uncommitted
Expand Down
4 changes: 0 additions & 4 deletions docs/generated/cli/format-write.md
Expand Up @@ -53,8 +53,6 @@ Format only libraries and applications files.

### ~~only-failed~~

Default: `false`

**Deprecated:** The command to rerun failed projects will appear if projects fail. This now does nothing and will be removed in v15.

Isolate projects which previously failed
Expand All @@ -69,8 +67,6 @@ This is the name of the tasks runner configured in nx.json

### skip-nx-cache

Default: `false`

Rerun the tasks even when the results are available in the cache

### uncommitted
Expand Down
52 changes: 0 additions & 52 deletions docs/generated/cli/graph.md
Expand Up @@ -15,56 +15,6 @@ nx graph

[Install `nx` globally](/getting-started/nx-setup#install-nx) to invoke the command directly using `nx`, or use `npx nx`, `yarn nx`, or `pnpx nx`.

### Examples

Open the project graph of the workspace in the browser:

```bash
nx graph
```

Save the project graph into a json file:

```bash
nx graph --file=output.json
```

Generate a static website with project graph into an html file, accompanied by an asset folder called static:

```bash
nx graph --file=output.html
```

Show the graph where every node is either an ancestor or a descendant of todos-feature-main:

```bash
nx graph --focus=todos-feature-main
```

Include project-one and project-two in the project graph:

```bash
nx graph --include=project-one,project-two
```

Exclude project-one and project-two from the project graph:

```bash
nx graph --exclude=project-one,project-two
```

Show the graph where every node is either an ancestor or a descendant of todos-feature-main, but exclude project-one and project-two:

```bash
nx graph --focus=todos-feature-main --exclude=project-one,project-two
```

Watch for changes to project graph and update in-browser:

```bash
nx graph --watch
```

## Options

### exclude
Expand Down Expand Up @@ -107,6 +57,4 @@ Show version number

### watch

Default: `false`

Watch for changes to project graph and update in-browser
14 changes: 0 additions & 14 deletions docs/generated/cli/list.md
Expand Up @@ -15,20 +15,6 @@ nx list [plugin]

[Install `nx` globally](/getting-started/nx-setup#install-nx) to invoke the command directly using `nx`, or use `npx nx`, `yarn nx`, or `pnpx nx`.

### Examples

List the plugins installed in the current workspace:

```bash
nx list
```

List the generators and executors available in the `@nrwl/web` plugin if it is installed (If the plugin is not installed `nx` will show advice on how to add it to your workspace):

```bash
nx list @nrwl/web
```

## Options

### help
Expand Down

0 comments on commit 83c8516

Please sign in to comment.