almost working impl
This commit is contained in:
11
validate.py
11
validate.py
@@ -10,7 +10,7 @@ ctl = ldc({'__catalog':'catalog.yaml'})
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
report = {}
|
||||
report = []
|
||||
for cli, props in ctl.items():
|
||||
lver, gh, rver, asset, exe = (False,)*5 # it is False until it is True
|
||||
# output semver on `--version`
|
||||
@@ -23,5 +23,12 @@ if __name__ == '__main__':
|
||||
# has linux + x86_64 + tgz asset
|
||||
# has exe at a known place
|
||||
r = Result(cli, lver, gh, rver, asset, exe)
|
||||
report.append(r)
|
||||
print(r)
|
||||
|
||||
tick = '\u2713'
|
||||
sad = '\U0001F61E'
|
||||
report = ["cli lver gh rver asset exe".split()] + [tuple(map(lambda x: ['-', tick][x] if type(x)==bool else x,r)) for r in report]
|
||||
from terminaltables import SingleTable
|
||||
table = SingleTable(report)
|
||||
table.inner_row_border=False
|
||||
print(table.table)
|
||||
|
Reference in New Issue
Block a user