Closed kuanpak closed 2 years ago
using Oakton; var builder = WebApplication.CreateBuilder(args); builder.Host.ApplyOaktonExtensions(); var app = builder.Build(); app.MapGet("/", () => "Hello World!"); return await app.RunOaktonCommands(args);
{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning" } }, "AllowedHosts": "*", "ProblemConfig": "value with [bracket]" }
dotnet run describe
ERROR: System.InvalidOperationException: Could not find color or style 'bracket'.
I've submitted a PR #69 for fixing this issue by applying EscapeMarkup().
EscapeMarkup()
Fixed by https://github.com/JasperFx/oakton/pull/69
Oakton version: 4.6.1
Error can be reproduced by below code and appsettings.json.
C# code:
appsettings.json
When run
dotnet run describe
, it will throw below exception:ERROR: System.InvalidOperationException: Could not find color or style 'bracket'.
Solution
I've submitted a PR #69 for fixing this issue by applying
EscapeMarkup()
.