Skip to content

Commit

Permalink
[rush-lib] Add --timeline parameter for all phased commands (#5082)
Browse files Browse the repository at this point in the history
* Add --timeline option for all phased commands

* rush change

---------

Co-authored-by: Elliot Nelson <[email protected]>
  • Loading branch information
elliot-nelson and elliot-nelson authored Jan 22, 2025
1 parent 061bc35 commit ae38aee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/rush",
"comment": "Allow --timeline option for all phased commands",
"type": "none"
}
],
"packageName": "@microsoft/rush"
}
12 changes: 6 additions & 6 deletions libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ export class PhasedScriptAction extends BaseScriptAction<IPhasedCommandConfig> {
' to specify a count that is equal to the number of CPU cores. If this parameter is omitted,' +
' then the default value depends on the operating system and number of CPU cores.'
});
this._timelineParameter = this.defineFlagParameter({
parameterLongName: '--timeline',
description:
'After the build is complete, print additional statistics and CPU usage information,' +
' including an ASCII chart of the start and stop times for each operation.'
});
}
this._timelineParameter = this.defineFlagParameter({
parameterLongName: '--timeline',
description:
'After the build is complete, print additional statistics and CPU usage information,' +
' including an ASCII chart of the start and stop times for each operation.'
});
this._cobuildPlanParameter = this.defineFlagParameter({
parameterLongName: '--log-cobuild-plan',
description:
Expand Down

0 comments on commit ae38aee

Please sign in to comment.