All Downloads are FREE. Search and download functionalities are using the official Maven repository.

coursier.cli.install.ListParams.scala Maven / Gradle / Ivy

There is a newer version: 2.1.13
Show newest version
package coursier.cli.install

import java.nio.file.{Path, Paths}

final case class ListParams(
    installPath: Path
)

object ListParams {
  def apply(options: ListOptions): ListParams = {
    val dir = options.installDir.filter(_.nonEmpty) match {
      case Some(d) => Paths.get(d)
      case None    => SharedInstallParams.defaultDir
    }
    ListParams(dir)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy