Skip to content

Commit 6419a83

Browse files
authored
Move MarkdownFormatter and output formatters to Common library (#661)
1 parent df89581 commit 6419a83

File tree

6 files changed

+9
-14
lines changed

6 files changed

+9
-14
lines changed

Src/BlueDotBrigade.Weevil.Cli/IO/OutputWriterContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Linq;
66
using System.Text;
77
using System.Threading.Tasks;
8+
using BlueDotBrigade.Weevil.IO;
89

910
public static class OutputWriterContext
1011
{

Src/BlueDotBrigade.Weevil.Cli/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using Diagnostics;
1111
using Filter;
1212
using IO;
13+
using BlueDotBrigade.Weevil.IO;
1314

1415
// ReSharper disable once ClassNeverInstantiated.Global
1516
internal class Program

Src/BlueDotBrigade.Weevil.Cli/IO/HtmlFormatter.cs renamed to Src/BlueDotBrigade.Weevil.Common/IO/HtmlFormatter.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
namespace BlueDotBrigade.Weevil.Cli.IO
1+
namespace BlueDotBrigade.Weevil.IO
22
{
3-
using System.Diagnostics;
43
using System;
54

6-
internal sealed class HtmlFormatter : IOutputFormatter
5+
public sealed class HtmlFormatter : IOutputFormatter
76
{
87
private int _numberedItemCounter = 1;
98

Src/BlueDotBrigade.Weevil.Cli/IO/IOutputFormatter.cs renamed to Src/BlueDotBrigade.Weevil.Common/IO/IOutputFormatter.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
namespace BlueDotBrigade.Weevil.Cli.IO
1+
namespace BlueDotBrigade.Weevil.IO
22
{
3-
using System.Diagnostics;
43
using System;
54

65
public interface IOutputFormatter
@@ -13,4 +12,3 @@ public interface IOutputFormatter
1312
void ResetNumbering();
1413
}
1514
}
16-

Src/BlueDotBrigade.Weevil.Cli/IO/MarkdownFormatter.cs renamed to Src/BlueDotBrigade.Weevil.Common/IO/MarkdownFormatter.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
namespace BlueDotBrigade.Weevil.Cli.IO
1+
namespace BlueDotBrigade.Weevil.IO
22
{
3-
using System.Diagnostics;
43
using System;
54

6-
internal sealed class MarkdownFormatter : IOutputFormatter
5+
public sealed class MarkdownFormatter : IOutputFormatter
76
{
87
private int _numberedItemCounter = 1;
98

@@ -15,4 +14,3 @@ internal sealed class MarkdownFormatter : IOutputFormatter
1514
public void ResetNumbering() => _numberedItemCounter = 1;
1615
}
1716
}
18-

Src/BlueDotBrigade.Weevil.Cli/IO/PlainTextFormatter.cs renamed to Src/BlueDotBrigade.Weevil.Common/IO/PlainTextFormatter.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
namespace BlueDotBrigade.Weevil.Cli.IO
1+
namespace BlueDotBrigade.Weevil.IO
22
{
3-
using System.Diagnostics;
43
using System;
54

6-
internal sealed class PlainTextFormatter : IOutputFormatter
5+
public sealed class PlainTextFormatter : IOutputFormatter
76
{
87
private int _numberedItemCounter = 1;
98

@@ -15,4 +14,3 @@ internal sealed class PlainTextFormatter : IOutputFormatter
1514
public void ResetNumbering() => _numberedItemCounter = 1;
1615
}
1716
}
18-

0 commit comments

Comments
 (0)