tools: Executables attribute is redundant in the yaml file.

The executables is determined by the command.
This commit is contained in:
Andrew Hamilton 2018-04-20 17:59:18 +10:00
parent b9f1d0e7f9
commit a5a7e24d4f
6 changed files with 149 additions and 25 deletions

View file

@ -72,6 +72,17 @@ def even_widths(column_widgets, width):
return widths
def appearance_as_html(appearance):
lines = []
all_styles = set()
for line in appearance:
html, styles = termstr.TermStr(line).as_html()
all_styles.update(styles)
lines.append(html)
return ("\n".join(style.as_html() for style in all_styles) +
'\n<pre>' + "<br>".join(lines) + "</pre>")
class Row(collections.UserList):
def __init__(self, widgets, widths_func=even_widths):