From f3050f12dc409d85f414c6f3f178484a951735ff Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 14 Sep 2022 17:05:50 -0500 Subject: [PATCH] feat: add more context to _print-ansi function --- src/print-ansi.py | 2 +- task.mk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/print-ansi.py b/src/print-ansi.py index 2e60235..4645de1 100644 --- a/src/print-ansi.py +++ b/src/print-ansi.py @@ -5,6 +5,6 @@ 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)) + print("{:>20} $(HELP_SEP) {} $(HELP_SEP) {}".format(codes_names[code], code + "******" + ansi.end,repr(code))) #% endblock %# diff --git a/task.mk b/task.mk index 3b33c42..d98d77e 100644 --- a/task.mk +++ b/task.mk @@ -1,7 +1,7 @@ # }> [github.com/daylinmorgan/task.mk] <{ # # Copyright (c) 2022 Daylin Morgan # MIT License -# version: v22.9.14-dev +# version: v22.9.14-2-g2e6f5d1-dev # # 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. @@ -303,7 +303,7 @@ $(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)) + print("{:>20} $(HELP_SEP) {} $(HELP_SEP) {}".format(codes_names[code], code + "******" + ansi.end,repr(code))) endef