mirror of
https://github.com/daylinmorgan/task.mk.git
synced 2024-11-10 03:13:14 -06:00
10 lines
348 B
Python
10 lines
348 B
Python
#% extends "py-script.mk" %#
|
|
#% block name %#print_ansi#% endblock %#
|
|
#% block script %#
|
|
##- '$(ansi_py)' -##
|
|
|
|
codes_names = {getattr(ansi, attr): attr for attr in ansi.__dict__}
|
|
for code in sorted(codes_names.keys(), key=lambda item: (len(item), item)):
|
|
print("{:>20} {}".format(codes_names[code], code + "******" + ansi.end))
|
|
|
|
#% endblock %#
|