Fixed banner with the help of AI

This commit is contained in:
Jim Nicholson 2024-02-07 04:30:38 -08:00
parent da42f61f21
commit a3bf854bb8

View File

@ -1,6 +1,8 @@
void call(stepName) { void call(String stepName) {
def bannerWidth = stepName.length() + 6 stepCorner = '+'
def banner = "+${'-'.multiply(bannerWidth)}+" stepBanner = "| $stepName |"
def stepBanner = "| $stepName |" bannerWidth = stepBanner.length() - 2
banner = stepCorder + ('=' * bannerWidth) + stepCorner
echo "$banner\n$stepBanner\n$banner" echo "$banner\n$stepBanner\n$banner"
} }