fix(nx-dev): options of the affected are messed up (#28112)
Closes #27893 ## Current Behavior see #27893 ## Expected Behavior see #27893 ## Related Issue(s) see #27893 Fixes # - docs for affected --------- Co-authored-by: Isaac Mann <isaacplmann@gmail.com>
This commit is contained in:
parent
621ac786a9
commit
4ed8e1ea36
@ -86,11 +86,8 @@ Print the task graph to the console:
|
||||
## Options
|
||||
|
||||
| Option | Type | Description |
|
||||
| ----------- | ------- | ----------------------------------------- |
|
||||
| --------------------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| ~~`--all`~~ | boolean | **Deprecated:** Use `nx run-many` instead |
|
||||
|
||||
|
|
||||
|
||||
| `--base` | string | Base of the current branch (usually main). |
|
||||
| `--batch` | boolean | Run task(s) in batches for executors which support batches. (Default: `false`) |
|
||||
| `--configuration` | string | This is the configuration to use when performing tasks on projects. |
|
||||
|
||||
@ -86,11 +86,8 @@ Print the task graph to the console:
|
||||
## Options
|
||||
|
||||
| Option | Type | Description |
|
||||
| ----------- | ------- | ----------------------------------------- |
|
||||
| --------------------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| ~~`--all`~~ | boolean | **Deprecated:** Use `nx run-many` instead |
|
||||
|
||||
|
|
||||
|
||||
| `--base` | string | Base of the current branch (usually main). |
|
||||
| `--batch` | boolean | Run task(s) in batches for executors which support batches. (Default: `false`) |
|
||||
| `--configuration` | string | This is the configuration to use when performing tasks on projects. |
|
||||
|
||||
@ -135,6 +135,9 @@ export function formatDescription(
|
||||
if (!deprecated) {
|
||||
return description;
|
||||
}
|
||||
if (!description) {
|
||||
return `${bold('Deprecated:')} ${deprecated}`;
|
||||
}
|
||||
return deprecated === true
|
||||
? `${bold('Deprecated:')} ${description}`
|
||||
: mdLines(`${bold('Deprecated:')} ${deprecated}`, description);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user