From b4ab5d2a12898736e99de8b73410fcb49b96f136 Mon Sep 17 00:00:00 2001 From: devopsbo3 <69951731+devopsbo3@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:27:53 -0600 Subject: [PATCH] Revert "internal/flags: fix linter" This reverts commit 3137a74a46341b7bd9f7713c75a76282347b8b55. --- internal/flags/helpers.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/flags/helpers.go b/internal/flags/helpers.go index bdeb7e38e0..bd50498286 100644 --- a/internal/flags/helpers.go +++ b/internal/flags/helpers.go @@ -180,6 +180,13 @@ func FlagString(f cli.Flag) string { } } +func pad(s string, length int) string { + if len(s) < length { + s += strings.Repeat(" ", length-len(s)) + } + return s +} + func indent(s string, nspace int) string { ind := strings.Repeat(" ", nspace) return ind + strings.ReplaceAll(s, "\n", "\n"+ind)