mirror of
https://github.com/daylinmorgan/task.mk.git
synced 2024-11-13 20:47:53 -06:00
13 lines
358 B
Python
13 lines
358 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 %#
|