mirror of https://github.com/sbt/sbt.git
Seq[Setting[_]] <=> SettingsDefinition
This commit is contained in:
parent
65c1320c60
commit
96d46b2c7a
|
|
@ -216,6 +216,10 @@ trait Init[Scope]
|
|||
case Seq(x, xs @ _*) => (join(xs) zipWith x)( (t,h) => h +: t)
|
||||
}
|
||||
}
|
||||
object SettingsDefinition {
|
||||
implicit def unwrapSettingsDefinition(d: SettingsDefinition): Seq[Setting[_]] = d.settings
|
||||
implicit def wrapSettingsDefinition(ss: Seq[Setting[_]]): SettingsDefinition = new SettingList(ss)
|
||||
}
|
||||
sealed trait SettingsDefinition {
|
||||
def settings: Seq[Setting[_]]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue