-
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.
Fixing up the tool to stop if config is wrong
Fix for issue where would never finish a blocktrain Made writing in a lock so it doesn't bump over itself (might not work) Added fxCop and styleCop LOADS OF CLEANING
- Loading branch information
Showing
19 changed files
with
432 additions
and
300 deletions.
There are no files selected for viewing
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 @@ | ||
namespace twot | ||
{ | ||
using System; | ||
using static System.ConsoleColor; | ||
using static ConsoleHelper; | ||
|
||
internal static class CommandHelpers | ||
{ | ||
internal static bool CommandHeader(string title, bool dryRun = false) | ||
{ | ||
Writeln(Cyan, title); | ||
if (dryRun) | ||
{ | ||
Writeln(Yellow, " ⚠ Dry run mode"); | ||
} | ||
|
||
if (!Config.Load().Success) | ||
{ | ||
return false; | ||
} | ||
|
||
Console.WriteLine(); | ||
return true; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.