Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/CodeCoverageSummary/CommandLineOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,8 @@ public class CommandLineOptions

[Option(longName: "thresholds", Required = false, HelpText = "Threshold percentages for badge and health indicators, lower threshold can also be used to fail the action.", Default = "50 75")]
public string Thresholds { get; set; }

[Option(longName: "verbosity", Required = false, HelpText = "Logging level - diagnostic or none", Default = "none")]
public string Verbosity { get; set; }
}
}
6 changes: 6 additions & 0 deletions src/CodeCoverageSummary/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ private static int Main(string[] args)

if (matchingFiles?.Any() == false)
{
if (string.Equals(o.Verbosity, "diagnostic", StringComparison.OrdinalIgnoreCase))
{
Matcher matcher = new();
IEnumerable<string> matchingFiles = matcher.GetResultsInFullPath(".");
Console.WriteLine($"Files available in search path: {string.Join(Environment.NewLine, matchingFiles)}");
}
Console.WriteLine("Error: No files found matching glob pattern.");
return -2; // error
}
Expand Down
Loading