[
https://issues.apache.org/jira/browse/ARIA-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15986489#comment-15986489
]
ASF GitHub Bot commented on ARIA-146:
-------------------------------------
Github user mxmrlv commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/109#discussion_r113681303
--- Diff: aria/cli/color.py ---
@@ -70,29 +70,26 @@ class Color(object):
'style': dict(_get_colors(Style))
}
- class Schema(object):
- def __init__(self, fore=None, back=None, style=None):
- """
- It is possible to provide fore, back and style arguments. each
could be either
- the color is lower case letter, or the actual color from
colorama.
- """
- self._kwargs = dict(fore=fore, back=back, style=style)
- self._str = StringIO()
- for type_, colors in Color._colors.items():
- value = self._kwargs.get(type_, None)
- # the former case is if the value is a string, the latter
is in case of an object.
- self._str.write(colors.get(value) or value)
+class Schema(object):
--- End diff --
ColorSpec
> Support colorful execution logging
> ----------------------------------
>
> Key: ARIA-146
> URL: https://issues.apache.org/jira/browse/ARIA-146
> Project: AriaTosca
> Issue Type: Story
> Reporter: Ran Ziv
> Assignee: Maxim Orlov
> Priority: Minor
>
> Add support for printing execution logs in color
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)