mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c616cdd750 | ||
|
|
d3c396956d | ||
|
|
d0cbbc6d9a |
@@ -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)
|
||||
|
||||
> Note: this major release includes many breaking changes.
|
||||
|
||||
@@ -191,7 +191,7 @@ namespace CliFx.Formatting
|
||||
}
|
||||
|
||||
Write(ConsoleColor.DarkGray, '"');
|
||||
Write(ConsoleColor.White, validValue.ToString());
|
||||
Write(validValue.ToString());
|
||||
Write(ConsoleColor.DarkGray, '"');
|
||||
}
|
||||
|
||||
@@ -270,7 +270,7 @@ namespace CliFx.Formatting
|
||||
}
|
||||
|
||||
Write(ConsoleColor.DarkGray, '"');
|
||||
Write(ConsoleColor.White, validValue.ToString());
|
||||
Write(validValue.ToString());
|
||||
Write(ConsoleColor.DarkGray, '"');
|
||||
}
|
||||
|
||||
|
||||
@@ -91,12 +91,7 @@ namespace CliFx.Utils
|
||||
{
|
||||
var matches = Pattern.Matches(stackTrace).Cast<Match>().ToArray();
|
||||
|
||||
// Ensure success (all lines should be parsed)
|
||||
var isSuccess =
|
||||
matches.Length ==
|
||||
stackTrace.Split('\n', StringSplitOptions.RemoveEmptyEntries).Length;
|
||||
|
||||
if (!isSuccess)
|
||||
if (matches.Length <= 0 || matches.Any(m => !m.Success))
|
||||
{
|
||||
// If parsing fails, we include the original stacktrace in the
|
||||
// exception so that it's shown to the user.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project>
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>2.0</Version>
|
||||
<Version>2.0.1</Version>
|
||||
<Company>Tyrrrz</Company>
|
||||
<Copyright>Copyright (C) Alexey Golub</Copyright>
|
||||
<LangVersion>latest</LangVersion>
|
||||
|
||||
Reference in New Issue
Block a user