Try the AI approach
This commit is contained in:
parent
e759b6a178
commit
24f432256a
@ -1,6 +0,0 @@
|
||||
|
||||
class Versioner {
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -1,6 +1,9 @@
|
||||
void printBanner(String anything) {
|
||||
boxCorner = '+'
|
||||
repetitions = anything.length() + 2
|
||||
boxTop = boxCorner + '=' * repetitions + boxCorner
|
||||
echo "${boxTop}\n| ${anything} |\n${boxTop}\n"
|
||||
def printStepBanner(stepName) {
|
||||
def bannerWidth = stepName.length() + 6
|
||||
def banner = "+${'-'.multiply(bannerWidth)}+"
|
||||
def stepBanner = "| $stepName |"
|
||||
|
||||
echo banner
|
||||
echo stepBanner
|
||||
echo banner
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user