Slide 25
Slide 25 text
25
class BuildTag : CliktCommand(name = "buildTag", help = "Makes all tests
and builds a release.") {
val tag by argument(name = "tag", help = "The tag to build").long()
val flavorType by option(help = "The flavor to build. Will build all
flavor if not specified.")
.choice("alpha", "playStore")
val buildType by option(help = "The buildType to build. Will build all
buildTypes if not specified.")
.choice("debug", "release")
override fun run() {
TagBuild(Gradle(),
tag,
flavorType,
buildType)
.execute()
}
}
fun main(args: Array) {
BuildTag().main(args)
}
La commande
BuildTag