diff --git a/Makefile b/Makefile index e07d683..59e7fdc 100644 --- a/Makefile +++ b/Makefile @@ -86,8 +86,9 @@ info: $(call tprint,$(mlmsg)) $(call tprint,{a.custom(fg=(148, 255, 15),bg=(103, 2, 15))}Custom Colors TOO!{a.end}) +.PHONY: task.mk task.mk: - ./generate.py $(shell git describe --tags) > task.mk + ./generate.py $(shell git describe --always | sed s'/dirty/dev/') > task.mk define USAGE {a.$(HEADER_COLOR)}usage:{a.end} diff --git a/src/print-ansi.py b/src/print-ansi.py index d6a6b62..685e9ae 100644 --- a/src/print-ansi.py +++ b/src/print-ansi.py @@ -5,8 +5,7 @@ codes_names = { getattr(ansi, attr): attr - for attr in dir(ansi) - if attr[0:1] != "_" and attr != "end" and attr != "setcode" + 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)) diff --git a/task.mk b/task.mk index 393a807..e84e07e 100644 --- a/task.mk +++ b/task.mk @@ -1,7 +1,7 @@ # }> [github.com/daylinmorgan/task.mk] <{ # # Copyright (c) 2022 Daylin Morgan # MIT License -# version: 22.9.7 +# version: c036a27 # # task.mk should be included at the bottom of your Makefile. # See below for the standard configuration options that should be set prior to including this file. @@ -240,8 +240,7 @@ $(ansi_py) codes_names = { getattr(ansi, attr): attr - for attr in dir(ansi) - if attr[0:1] != "_" and attr != "end" and attr != "setcode" + 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))