From 525249ab3b83a805e2e3ab23a357d02530c2fe4b Mon Sep 17 00:00:00 2001 From: Pedro Ramos Date: Wed, 22 May 2024 22:36:18 +0200 Subject: [PATCH] Add metadata for 'diff' command --- src/commands/diff.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/commands/diff.ts b/src/commands/diff.ts index 009e00911e9..078825f56cb 100644 --- a/src/commands/diff.ts +++ b/src/commands/diff.ts @@ -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);