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) {
def bannerWidth = stepName.length() + 6
def banner = "+${'-'.multiply(bannerWidth)}+"
def stepBanner = "| $stepName |"
void call(String stepName) {
stepCorner = '+'
stepBanner = "| $stepName |"
bannerWidth = stepBanner.length() - 2
banner = stepCorder + ('=' * bannerWidth) + stepCorner
echo "$banner\n$stepBanner\n$banner"
}