3 Commits
2.0 ... 2.0.1

Author SHA1 Message Date
Tyrrrz
c616cdd750 Update version 2021-03-24 02:40:10 +02:00
Tyrrrz
d3c396956d Fix StackFrame.ParseMany(...) being too paranoid about its own failure 2021-03-24 02:34:36 +02:00
Tyrrrz
d0cbbc6d9a Don't highlight valid values in help text 2021-03-23 01:56:28 +02:00
4 changed files with 9 additions and 9 deletions

View File

@@ -1,3 +1,8 @@
### v2.0.1 (24-Mar-2021)
- Fixed an issue where some exceptions with async stack traces generated on .NET 3.1 or earlier were not parsed and formatted correctly.
- Fixed an issue where help text applied slightly incorrect formatting when displaying choices for enum-based parameters and properties.
### v2.0 (21-Mar-2021) ### v2.0 (21-Mar-2021)
> Note: this major release includes many breaking changes. > Note: this major release includes many breaking changes.

View File

@@ -191,7 +191,7 @@ namespace CliFx.Formatting
} }
Write(ConsoleColor.DarkGray, '"'); Write(ConsoleColor.DarkGray, '"');
Write(ConsoleColor.White, validValue.ToString()); Write(validValue.ToString());
Write(ConsoleColor.DarkGray, '"'); Write(ConsoleColor.DarkGray, '"');
} }
@@ -270,7 +270,7 @@ namespace CliFx.Formatting
} }
Write(ConsoleColor.DarkGray, '"'); Write(ConsoleColor.DarkGray, '"');
Write(ConsoleColor.White, validValue.ToString()); Write(validValue.ToString());
Write(ConsoleColor.DarkGray, '"'); Write(ConsoleColor.DarkGray, '"');
} }

View File

@@ -91,12 +91,7 @@ namespace CliFx.Utils
{ {
var matches = Pattern.Matches(stackTrace).Cast<Match>().ToArray(); var matches = Pattern.Matches(stackTrace).Cast<Match>().ToArray();
// Ensure success (all lines should be parsed) if (matches.Length <= 0 || matches.Any(m => !m.Success))
var isSuccess =
matches.Length ==
stackTrace.Split('\n', StringSplitOptions.RemoveEmptyEntries).Length;
if (!isSuccess)
{ {
// If parsing fails, we include the original stacktrace in the // If parsing fails, we include the original stacktrace in the
// exception so that it's shown to the user. // exception so that it's shown to the user.

View File

@@ -1,7 +1,7 @@
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<Version>2.0</Version> <Version>2.0.1</Version>
<Company>Tyrrrz</Company> <Company>Tyrrrz</Company>
<Copyright>Copyright (C) Alexey Golub</Copyright> <Copyright>Copyright (C) Alexey Golub</Copyright>
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>