Try the AI approach

This commit is contained in:
Jim Nicholson 2024-02-07 04:15:23 -08:00
parent e759b6a178
commit 24f432256a
2 changed files with 8 additions and 11 deletions

View File

@ -1,6 +0,0 @@
class Versioner {
}

View File

@ -1,6 +1,9 @@
void printBanner(String anything) { def printStepBanner(stepName) {
boxCorner = '+' def bannerWidth = stepName.length() + 6
repetitions = anything.length() + 2 def banner = "+${'-'.multiply(bannerWidth)}+"
boxTop = boxCorner + '=' * repetitions + boxCorner def stepBanner = "| $stepName |"
echo "${boxTop}\n| ${anything} |\n${boxTop}\n"
echo banner
echo stepBanner
echo banner
} }