1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -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
val latestVersionFuture = github.latestKobaltVersion
benchmark("Build", {
println(AsciiArt.banner + Kobalt.version + "\n")
runTest()
// runTest()
result = runWithArgs(jc, args)
executors.shutdown()
})
@ -107,6 +106,10 @@ private class Main @Inject constructor(
args.buildFile = p.absolutePath
val buildFile = BuildFile(Paths.get(p.absolutePath), p.name)
if (! args.update) {
println(AsciiArt.banner + Kobalt.version + "\n")
}
if (args.init) {
//
// --init: create a new build project and install the wrapper