Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 584 Bytes
package org.boothub.context
import groovy.transform.SelfType
import org.beryx.textio.TextIO
@SelfType(ProjectContext)
@ConfiguredBy(CloverSupport.Configurator)
trait CloverSupport {
boolean useClover = true
static class Configurator extends TextIOConfigurator {
@Override
void configureWithTextIO(ProjectContext context, TextIO textIO) {
def ctx = context as CloverSupport
ctx.useClover = textIO.newBooleanInputReader()
.withDefaultValue(ctx.useClover)
.read("Use Clover?")
}
}
}
You can’t perform that action at this time.