-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a bunch of bugs. Filters now are called once for all categories…
…. Added more program options for collate sub-command.
- Loading branch information
Maozi Chen
committed
Sep 26, 2020
1 parent
4d1bff1
commit dfe1577
Showing
18 changed files
with
501 additions
and
238 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace mccsx | ||
{ | ||
internal enum RowOrdering | ||
{ | ||
score, | ||
sequence, | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace mccsx | ||
{ | ||
[Serializable] | ||
public class FilterException : Exception | ||
{ | ||
public FilterException() { } | ||
public FilterException(string message) : base(message) { } | ||
public FilterException(string message, Exception inner) : base(message, inner) { } | ||
public FilterException(string message, string filterName) : base(message) => FilterName = filterName; | ||
public FilterException(string message, string filterName, Exception inner) : base(message, inner) => FilterName = filterName; | ||
protected FilterException( | ||
SerializationInfo info, | ||
StreamingContext context) : base(info, context) { } | ||
|
||
public string? FilterName { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
|
||
namespace mccsx.Helpers | ||
{ | ||
internal static class Logger | ||
{ | ||
public static void Info(string message) | ||
{ | ||
Console.WriteLine(message); | ||
} | ||
|
||
public static void Warning(string message) | ||
{ | ||
Console.ForegroundColor = ConsoleColor.Yellow; | ||
Console.Error.WriteLine($"WARN: {message}"); | ||
Console.ResetColor(); | ||
} | ||
|
||
public static void Error(string message) | ||
{ | ||
Console.ForegroundColor = ConsoleColor.Red; | ||
Console.Error.WriteLine($"ERROR: {message}"); | ||
Console.ResetColor(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.