From 72ec8e1ba2a2ac713399b2bca7b17a1adfa7289e Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 12 Sep 2022 10:08:44 -0500 Subject: [PATCH] feat: add padding to help output --- src/help.py | 2 +- task.mk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/help.py b/src/help.py index 1878213..0810bb6 100644 --- a/src/help.py +++ b/src/help.py @@ -33,7 +33,7 @@ goal_len = max(len(goal[0]) for goal in goals) for goal, msg in goals: print( - f"{ansi.$(GOAL_COLOR)}{goal:>{goal_len}}{ansi.end} $(HELP_SEP) {ansi.$(MSG_COLOR)}{msg}{ansi.end}" + f" {ansi.$(GOAL_COLOR)}{goal:>{goal_len}}{ansi.end} $(HELP_SEP) {ansi.$(MSG_COLOR)}{msg}{ansi.end}" ) print(f"""$(EPILOG)""") diff --git a/task.mk b/task.mk index 9526ae3..2f5e973 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.12 +# version: v22.9.12-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. @@ -127,7 +127,7 @@ goal_len = max(len(goal[0]) for goal in goals) for goal, msg in goals: print( - f"{ansi.$(GOAL_COLOR)}{goal:>{goal_len}}{ansi.end} $(HELP_SEP) {ansi.$(MSG_COLOR)}{msg}{ansi.end}" + f" {ansi.$(GOAL_COLOR)}{goal:>{goal_len}}{ansi.end} $(HELP_SEP) {ansi.$(MSG_COLOR)}{msg}{ansi.end}" ) print(f"""$(EPILOG)""")