coursier.cli.publish.options.RepositoryOptions.scala Maven / Gradle / Ivy
package coursier.cli.publish.options
import caseapp._
final case class RepositoryOptions(
@Name("r")
@Name("repo")
@Name("dest")
repository: Option[String] = None,
@HelpMessage("Repository to read maven-metadata.xml files from")
readFrom: Option[String] = None,
auth: Option[String] = None,
sonatype: Option[Boolean] = None,
github: Option[String] = None,
bintray: Option[String] = None,
bintrayApiKey: Option[String] = None,
bintrayLicense: List[String] = Nil,
bintrayVcsUrl: Option[String] = None,
snapshotVersioning: Boolean = true
) {
override def toString: String =
copy(auth = auth.map(_ => "****"))
.productIterator
.mkString("RepositoryOptions(", ", ", ")")
}
object RepositoryOptions {
implicit val parser = Parser[RepositoryOptions]
implicit val help = caseapp.core.help.Help[RepositoryOptions]
}