Skip to content

Commit

Permalink
Add metadata for 'diff' command
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-rr committed May 22, 2024
1 parent 3b8ebdb commit 525249a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/commands/diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ export default class Diff extends Command {
checkAndWarnFalseFlag(outputFormat, markdownSubtype);
markdownSubtype = setDefaultMarkdownSubtype(outputFormat, markdownSubtype) as string;

this.metricsMetadata.output_format = outputFormat;
this.metricsMetadata.output_type = outputType;
if (outputFormat === 'md') {
this.metricsMetadata.output_markdown_subtype = flags['markdownSubtype'];
}

try {
firstDocument = await load(firstDocumentPath);

Expand Down

0 comments on commit 525249a

Please sign in to comment.