Skip to content

Commit 023fbf6

Browse files
committed
feat: add CLI options for persist.report
1 parent e565898 commit 023fbf6

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Persist Options:
4343
[string]
4444
--persist.format Format of the report output. e.g. \`md\`, \`json\`
4545
[array]
46+
--persist.report Generate the report files for given formats. (useful
47+
in combination with caching) [boolean]
4648
4749
Upload Options:
4850
--upload.organization Organization slug from portal

packages/cli/src/lib/implementation/core-config.model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export type PersistConfigCliOptions = {
44
'persist.outputDir'?: string;
55
'persist.filename'?: string;
66
'persist.format'?: Format;
7+
'persist.report'?: boolean;
78
};
89

910
export type UploadConfigCliOptions = {

packages/cli/src/lib/implementation/core-config.options.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ export function yargsPersistConfigOptionsDefinition(): Record<
3131
describe: 'Format of the report output. e.g. `md`, `json`',
3232
type: 'array',
3333
},
34+
'persist.report': {
35+
describe:
36+
'Generate the report files for given formats. (useful in combination with caching)',
37+
type: 'boolean',
38+
},
3439
};
3540
}
3641

0 commit comments

Comments
 (0)