From 095a3918f1a3817acba102a7d11d6b913de6eccf Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sun, 24 Jul 2016 23:28:31 -0800 Subject: [PATCH] Formatting. --- src/main/kotlin/com/beust/kobalt/Main.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/beust/kobalt/Main.kt b/src/main/kotlin/com/beust/kobalt/Main.kt index 5e2bd2cc..d3ba7113 100644 --- a/src/main/kotlin/com/beust/kobalt/Main.kt +++ b/src/main/kotlin/com/beust/kobalt/Main.kt @@ -199,7 +199,7 @@ private class Main @Inject constructor( // --checkVersions checkVersions.run(allProjects) } else if (args.download) { - // -- download + // --download updateKobalt.downloadKobalt() } else { // @@ -213,11 +213,13 @@ private class Main @Inject constructor( // Shutdown all plug-ins plugins.shutdownPlugins() + // Display timings if requested if (args.profiling) { log(1, "\nTIMINGS (SECONDS)") - log(1, "================\n") + log(1, "=================\n") runTargetResult.timings.sortedByDescending { it.durationMillis }.forEach { - log(1, String.format("%.2f", it.durationMillis.toDouble() / 1000) + " " + it.taskName) + log(1, String.format("%-6.2f", it.durationMillis.toDouble() / 1000) + + " " + it.taskName) } log(1, "\n") }