mirror of https://github.com/sbt/sbt.git
Print results of the resolution command on stdout and unindented
For easier piping to other processes
This commit is contained in:
parent
a254b9c21c
commit
bf7386a218
|
|
@ -64,7 +64,7 @@ case class Resolve(
|
|||
) extends CoursierCommand {
|
||||
|
||||
// the `val helper = ` part is needed because of DelayedInit it seems
|
||||
val helper = new Helper(common, remainingArgs)
|
||||
val helper = new Helper(common, remainingArgs, printResultStdout = true)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,8 @@ object Util {
|
|||
|
||||
class Helper(
|
||||
common: CommonOptions,
|
||||
rawDependencies: Seq[String]
|
||||
rawDependencies: Seq[String],
|
||||
printResultStdout: Boolean = false
|
||||
) {
|
||||
import common._
|
||||
import Helper.errPrintln
|
||||
|
|
@ -214,7 +215,10 @@ class Helper(
|
|||
|
||||
val trDeps = res.minDependencies.toVector
|
||||
|
||||
if (verbose0 >= 0)
|
||||
if (printResultStdout) {
|
||||
errPrintln(s"Result:")
|
||||
println(Print.dependenciesUnknownConfigs(trDeps))
|
||||
} else if (verbose0 >= 0)
|
||||
errPrintln(s"Result:\n${indent(Print.dependenciesUnknownConfigs(trDeps))}")
|
||||
|
||||
def fetch(
|
||||
|
|
|
|||
Loading…
Reference in New Issue