mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 05:18:16 +08:00
Adding analyzers for common mistakes with live renderables
This commit is contained in:

committed by
Patrik Svensson

parent
4f293d887d
commit
bdcc01ea68
@ -1,32 +1,13 @@
|
||||
using System.Threading;
|
||||
using Spectre.Console;
|
||||
|
||||
namespace AnalyzerTester
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
static void Main()
|
||||
{
|
||||
AnsiConsole.WriteLine("Hello World!");
|
||||
}
|
||||
}
|
||||
|
||||
class Dependency
|
||||
{
|
||||
private readonly IAnsiConsole _ansiConsole;
|
||||
|
||||
public Dependency(IAnsiConsole ansiConsole)
|
||||
{
|
||||
_ansiConsole = ansiConsole;
|
||||
}
|
||||
|
||||
public void DoIt()
|
||||
{
|
||||
_ansiConsole.WriteLine("Hey mom!");
|
||||
}
|
||||
|
||||
public void DoIt(IAnsiConsole thisConsole)
|
||||
{
|
||||
thisConsole.WriteLine("Hey mom!");
|
||||
AnsiConsole.WriteLine("Project is set up with a reference to Spectre.Console.Analyzer");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user