You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This avoids the issue of needing to have two different method (one with a trailing newline and another without), or needing a special output method at all.
May want to add TextColors and BackgroundColors if that's desired, but I feel like that could be deferred.
@cllns Any updates with this? I think this would be a great feature. I know they have something like this in Thor if there is needed inspiration Thor:Color
This is a feature I started working on long ago for Hanami: hanami/hanami#906
There could be two parts to this:
dry-cli
, like each command'shelp
and the list of subcommandssay
that users of the library can use to print in color (instead of usingprint
).e.g.
This should probably be like
print
rather thanputs
(no trailing newline), since people should be able to print in several colors on one line.The concrete use-case for this could be like hanami/hanami#906, being able to colorize the output of file generation for Hanami.
Is this something we'd be interested in adding to
dry-cli
? Any thoughts on the API?The text was updated successfully, but these errors were encountered: