1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 00:38:11 -07:00

Don't show the banner if --update.

This commit is contained in:
Cedric Beust 2015-11-03 21:11:48 -08:00
parent 77df0afd18
commit 4df5eabec7

View file

@ -68,8 +68,7 @@ private class Main @Inject constructor(
var result = 0 var result = 0
val latestVersionFuture = github.latestKobaltVersion val latestVersionFuture = github.latestKobaltVersion
benchmark("Build", { benchmark("Build", {
println(AsciiArt.banner + Kobalt.version + "\n") // runTest()
runTest()
result = runWithArgs(jc, args) result = runWithArgs(jc, args)
executors.shutdown() executors.shutdown()
}) })
@ -107,6 +106,10 @@ private class Main @Inject constructor(
args.buildFile = p.absolutePath args.buildFile = p.absolutePath
val buildFile = BuildFile(Paths.get(p.absolutePath), p.name) val buildFile = BuildFile(Paths.get(p.absolutePath), p.name)
if (! args.update) {
println(AsciiArt.banner + Kobalt.version + "\n")
}
if (args.init) { if (args.init) {
// //
// --init: create a new build project and install the wrapper // --init: create a new build project and install the wrapper