Skip to content

Commit 531bedb

Browse files
committed
fix: update help output with caching options
1 parent f3b9223 commit 531bedb

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

e2e/cli-e2e/tests/__snapshots__/help.e2e.test.ts.snap

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ Global Options:
3636
-p, --onlyPlugins List of plugins to run. If not set all plugins are run.
3737
[array] [default: []]
3838
39+
Cache Options:
40+
--cache Cache runner outputs (both read and write)
41+
[boolean]
42+
--cache.read Read runner-output.json from file system
43+
[boolean]
44+
--cache.write Write runner-output.json to file system
45+
[boolean]
46+
3947
Persist Options:
4048
--persist.outputDir Directory for the produced reports
4149
[string]
@@ -56,14 +64,8 @@ Upload Options:
5664
[string]
5765
5866
Options:
59-
--version Show version [boolean]
60-
--cache Cache runner outputs (both read and write)
61-
[boolean]
62-
--cache.read Read runner-output.json to file system
63-
[boolean]
64-
--cache.write Write runner-output.json to file system
65-
[boolean]
66-
-h, --help Show help [boolean]
67+
--version Show version [boolean]
68+
-h, --help Show help [boolean]
6769
6870
Examples:
6971
code-pushup Run collect followed by upload based

packages/cli/src/lib/options.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
yargsCacheConfigOptionsDefinition,
23
yargsCoreConfigOptionsDefinition,
34
yargsPersistConfigOptionsDefinition,
45
yargsUploadConfigOptionsDefinition,
@@ -17,6 +18,7 @@ export const groups = {
1718
...Object.keys(yargsGlobalOptionsDefinition()),
1819
...Object.keys(yargsFilterOptionsDefinition()),
1920
],
21+
'Cache Options:': Object.keys(yargsCacheConfigOptionsDefinition()),
2022
'Persist Options:': Object.keys(yargsPersistConfigOptionsDefinition()),
2123
'Upload Options:': Object.keys(yargsUploadConfigOptionsDefinition()),
2224
};

packages/models/docs/models-reference.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,11 +1258,12 @@ _Enum, one of the following possible values:_
12581258

12591259
_Object containing the following properties:_
12601260

1261-
| Property | Description | Type |
1262-
| :---------- | :-------------------------------------- | :--------------------------------- |
1263-
| `outputDir` | Artifacts folder | [FilePath](#filepath) |
1264-
| `filename` | Artifacts file name (without extension) | [FileName](#filename) |
1265-
| `format` | | _Array of [Format](#format) items_ |
1261+
| Property | Description | Type |
1262+
| :------------ | :-------------------------------------- | :--------------------------------- |
1263+
| `outputDir` | Artifacts folder | [FilePath](#filepath) |
1264+
| `filename` | Artifacts file name (without extension) | [FileName](#filename) |
1265+
| `format` | | _Array of [Format](#format) items_ |
1266+
| `skipReports` | | `boolean` |
12661267

12671268
_All properties are optional._
12681269

0 commit comments

Comments
 (0)