Skip to content

Commit

Permalink
Fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
tindzk committed Feb 10, 2020
1 parent 32efb27 commit 5fc469a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
19 changes: 15 additions & 4 deletions src/main/scala/seed/Cli.scala
Original file line number Diff line number Diff line change
Expand Up @@ -447,11 +447,22 @@ ${underlined("Usage:")} seed [--build=<path>] [--config=<path>] <command>
val resolvedCachePath = cachePath.getOrElse(seedConfig.resolution.cachePath)

log.info("Configured resolvers:")
log.detail("- " + Ansi.italic(resolvedIvyPath.toString) + " (Ivy)")
log.detail("- " + Ansi.italic(resolvedCachePath.toString) + " (Coursier)")
log.info(
"- " + Ansi.italic(resolvedIvyPath.toString) + " (Ivy)",
detail = true
)
log.info(
"- " + Ansi.italic(resolvedCachePath.toString) + " (Coursier)",
detail = true
)

resolvers.ivy
.foreach(ivy => log.detail("- " + Ansi.italic(ivy.url) + " (Ivy)"))
.foreach(
ivy => log.info("- " + Ansi.italic(ivy.url) + " (Ivy)", detail = true)
)
resolvers.maven
.foreach(maven => log.detail("- " + Ansi.italic(maven) + " (Maven)"))
.foreach(
maven => log.info("- " + Ansi.italic(maven) + " (Maven)", detail = true)
)
}
}
2 changes: 1 addition & 1 deletion src/main/scala/seed/cli/Doc.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ object Doc {
command.modules.map(util.Target.parseModuleString(build.build))
util.Validation.unpack(parsedModules) match {
case Left(errors) =>
errors.foreach(log.error)
errors.foreach(log.error(_))
UIO.interrupt

case Right(allModules) =>
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/seed/cli/Publish.scala
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ object Publish {
val parsedModules = modules.map(util.Target.parseModuleString(build))
util.Validation.unpack(parsedModules) match {
case Left(errors) =>
errors.foreach(log.error)
errors.foreach(log.error(_))
sys.exit(1)

case Right(allModules) =>
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/seed/cli/DocSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ object DocSpec extends TestSuite[Unit] {
import config._

val buildPath = tempPath.resolve(name)
Files.createDirectory(buildPath)
if (!Files.exists(buildPath)) Files.createDirectory(buildPath)

cli.Generate.ui(
Config(),
Expand Down

0 comments on commit 5fc469a

Please sign in to comment.