Skip to content

Commit c603617

Browse files
committed
Expose safeForSimultaneousRushProcesses to custom-commands.
1 parent 3e52b2e commit c603617

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎apps/rush-lib/src/api/CommandLineJson.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface IBaseCommandJson {
1212
* If omitted, the summary will be used instead.
1313
*/
1414
description?: string;
15+
safeForSimultaneousRushProcesses: boolean;
1516
}
1617

1718
/**

‎apps/rush-lib/src/cli/RushCommandLineParser.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ export class RushCommandLineParser extends CommandLineParser {
198198
actionName: command.name,
199199
summary: command.summary,
200200
documentation: command.description || command.summary,
201+
safeForSimultaneousRushProcesses: command.safeForSimultaneousRushProcesses,
201202

202203
parser: this,
203204
commandLineConfiguration: commandLineConfiguration,
@@ -211,6 +212,7 @@ export class RushCommandLineParser extends CommandLineParser {
211212
actionName: command.name,
212213
summary: command.summary,
213214
documentation: command.description || command.summary,
215+
safeForSimultaneousRushProcesses: command.safeForSimultaneousRushProcesses,
214216

215217
parser: this,
216218
commandLineConfiguration: commandLineConfiguration,

‎apps/rush-lib/src/schemas/command-line.schema.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
"title": "Custom Command Description",
4242
"description": "A detailed description of the command, which appears when requesting help for the command (e.g. \"rush --help my-command\"). If omitted, the summary will be used.",
4343
"type": "string"
44+
},
45+
"safeForSimultaneousRushProcesses": {
46+
"title": "Safe For Simultaneous Rush Processes",
47+
"description": "Can this command trigger additional rush processes, useful if you want a rush command to trigger another rush command.",
48+
"type": "boolean"
4449
}
4550
}
4651
},
@@ -78,6 +83,7 @@
7883
"name": { "$ref": "#/definitions/anything" },
7984
"summary": { "$ref": "#/definitions/anything" },
8085
"description": { "$ref": "#/definitions/anything" },
86+
"safeForSimultaneousRushProcesses": { "$ref": "#/definitions/anything" },
8187

8288
"enableParallelism": { "$ref": "#/definitions/anything" },
8389
"ignoreMissingScript": { "$ref": "#/definitions/anything" }
@@ -114,6 +120,7 @@
114120
"name": { "$ref": "#/definitions/anything" },
115121
"summary": { "$ref": "#/definitions/anything" },
116122
"description": { "$ref": "#/definitions/anything" },
123+
"safeForSimultaneousRushProcesses": { "$ref": "#/definitions/anything" },
117124

118125
"shellCommand": { "$ref": "#/definitions/anything" }
119126
}

0 commit comments

Comments
 (0)