Add SBT plugin

This commit is contained in:
Alexandre Archambault
2015-12-30 01:34:32 +01:00
parent 46732be5c9
commit 842de76ca6
15 changed files with 672 additions and 48 deletions
@@ -26,11 +26,6 @@ class TermDisplay(out: Writer) extends Logger {
case Some(Right(())) =>
// update display
for (_ <- 0 until lineCount) {
ansi.up(1)
ansi.clearLine(2)
}
val downloads0 = downloads.synchronized {
downloads
.toVector
@@ -71,9 +66,13 @@ class TermDisplay(out: Writer) extends Logger {
} else
(url, extra)
ansi.clearLine(2)
out.write(s"$url0 $extra0\n")
}
for (_ <- downloads0.indices)
ansi.up(1)
out.flush()
Thread.sleep(refreshInterval)
helper(downloads0.length)