AnsiConsole.Write receives an IEnumerable from IRenderable
jos3s opened this issue · 0 comments
Is your feature request related to a problem? Please describe.
I find it frustrating that I need to do an AnsiConsole.Write when I want to create text that are pieces of library classes. For example, I want to display "File create, in the path: {PATH} ", where PATH would be an item of type TextPath.
Describe the solution you'd like
My solution would be to allow an overload of AnsiConsole's Write method, which receives a list of IRenderable items and assembles them in one line.
Where the final output would be something like this:
Describe alternatives you've considered
Another solution that has been considered would be for items such as Text, TextJson and the like to have a ToString method that returns the string to be used in string interpolations
Additional context
Add any other context or screenshots about the feature request here.
Please upvote 👍 this issue if you are interested in it.