mirror of
https://github.com/irongut/CodeCoverageSummary.git
synced 2026-05-18 16:00:13 +02:00
23 lines
995 B
C#
23 lines
995 B
C#
using CommandLine;
|
|
|
|
namespace CodeCoverageSummary
|
|
{
|
|
public class CommandLineOptions
|
|
{
|
|
[Value(index: 0, Required = true, HelpText = "Code coverage file to analyse.")]
|
|
public string Filename { get; set; }
|
|
|
|
[Option(longName: "badge", Required = false, HelpText = "Include a badge reporting the Line Rate coverage in the output using shields.io - true or false.", Default = false)]
|
|
public bool Badge { get; set; }
|
|
|
|
[Option(longName: "format", Required = false, HelpText = "Output Format - markdown or text.", Default = "text")]
|
|
public string Format { get; set; }
|
|
|
|
[Option(longName: "output", Required = false, HelpText = "Output Type - console, file or both.", Default = "console")]
|
|
public string Output { get; set; }
|
|
|
|
[Option(longName: "thresholds", Required = false, HelpText = "Badge colour threshold percentages.", Default = "50 75")]
|
|
public string Thresholds { get; set; }
|
|
}
|
|
}
|