We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5853f30 commit 8f792a3Copy full SHA for 8f792a3
tools/apput/src/Reporters/BaseReporter.cs
@@ -6,6 +6,8 @@
6
7
namespace ApplicationUtility;
8
9
+// TODO: generate Markdown
10
+// TODO: detect whether we can output colors
11
abstract class BaseReporter : IReporter
12
{
13
protected enum Countable
@@ -30,6 +32,8 @@ protected enum Countable
30
32
protected abstract string AspectName { get; }
31
33
protected abstract string ShortDescription { get; }
34
35
+ protected static readonly bool CanUseColor = !Console.IsOutputRedirected;
36
+
37
public void Report ()
38
39
WriteLine (BannerColor, $"# {AspectName} ({ShortDescription})");
0 commit comments