Is your feature request related to a problem? Please describe.
ValidationResult.Error method should accept/support markup string when returning from CommandSettings.Validate method.
In Validate method of my CommndSettings i want to return such error:
return ValidationResult.Error($"Option [red]encrypt[/] or [red]decrypt[/] is required.");
But it is not supported right now and is printed as is, without markup support.
Describe the solution you'd like
Add Error overload which accepts Spectre.Console.Text or add another parameter to existing Error to named bool markup which will convert string to markup string if true.
Describe alternatives you've considered
Dont find any workaround.
Additional context
Please upvote :+1: this issue if you are interested in it.
Is your feature request related to a problem? Please describe.
ValidationResult.Error
method should accept/support markup string when returning fromCommandSettings.Validate
method.In
Validate
method of myCommndSettings
i want to return such error:But it is not supported right now and is printed as is, without markup support.
Describe the solution you'd like Add
Error
overload which acceptsSpectre.Console.Text
or add another parameter to existingError
to namedbool markup
which will convert string to markup string iftrue
.Describe alternatives you've considered Dont find any workaround.
Additional context
Please upvote :+1: this issue if you are interested in it.