Skip to content

Allow custom exporter options to be defined #1967

Open
@PaulRitter

Description

@PaulRitter

Currently options for the exporters console argument are hardcoded here:

private static readonly IReadOnlyDictionary<string, IExporter[]> AvailableExporters =
new Dictionary<string, IExporter[]>(StringComparer.InvariantCultureIgnoreCase)
{
{ "csv", new[] { CsvExporter.Default } },
{ "csvmeasurements", new[] { CsvMeasurementsExporter.Default } },
{ "html", new[] { HtmlExporter.Default } },
{ "markdown", new[] { MarkdownExporter.Default } },
{ "atlassian", new[] { MarkdownExporter.Atlassian } },
{ "stackoverflow", new[] { MarkdownExporter.StackOverflow } },
{ "github", new[] { MarkdownExporter.GitHub } },
{ "plain", new[] { PlainExporter.Default } },
{ "rplot", new[] { CsvMeasurementsExporter.Default, RPlotExporter.Default } }, // R Plots depends on having the full measurements available
{ "json", new[] { JsonExporter.Default } },
{ "briefjson", new[] { JsonExporter.Brief } },
{ "fulljson", new[] { JsonExporter.Full } },
{ "asciidoc", new[] { AsciiDocExporter.Default } },
{ "xml", new[] { XmlExporter.Default } },
{ "briefxml", new[] { XmlExporter.Brief } },
{ "fullxml", new[] { XmlExporter.Full } }
};

I would love a way to add custom exporters as options to this list.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions