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

coursier.cli.complete.CompleteOptions.scala Maven / Gradle / Ivy

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

import caseapp.{ExtraName => Short, HelpMessage => Help, _}
import coursier.cli.options.{CacheOptions, OutputOptions, RepositoryOptions}

final case class CompleteOptions(

  @Recurse
    cacheOptions: CacheOptions = CacheOptions(),

  @Recurse
    repositoryOptions: RepositoryOptions = RepositoryOptions(),

  @Recurse
    outputOptions: OutputOptions = OutputOptions(),

  @Help("Default scala version")
  @Short("e")
    scalaVersion: Option[String] = None

) {
  lazy val scalaBinaryVersion: Option[String] =
    scalaVersion
      .filter(_.nonEmpty)
      .map(coursier.complete.Complete.scalaBinaryVersion)
}

object CompleteOptions {
  implicit val parser = Parser[CompleteOptions]
  implicit val help = caseapp.core.help.Help[CompleteOptions]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy