Binds a single value to this.
Binds a single value to this. A new [Def.Setting] is defined using the value(s) of app
.
value to bind to this key
setting binding this key to the given value.
Creates an Def.Initialize with value scala.None if there was no previous definition of this key,
and scala.Some(value)
if a definition exists.
Creates an Def.Initialize with value scala.None if there was no previous definition of this key,
and scala.Some(value)
if a definition exists. Useful for when you want to use the existence of
one setting in order to define another setting.
currently bound value wrapped in Initialize[Some[T]]
, or Initialize[None]
if unbound.
Like ?, but with a call-by-name parameter rather than an existing Def.Initialize.
Like ?, but with a call-by-name parameter rather than an existing Def.Initialize. Useful when you want to have a value computed when no value is bound to this key.
by-name expression evaluated when a value is needed.
currently bound setting value, or the result of or
if unbound.
From the given Settings, extract the value bound to this key.
From the given Settings, extract the value bound to this key.
Creates an Def.Initialize with value bound to this key, or returns i
parameter if unbound.
Creates an Def.Initialize with value bound to this key, or returns i
parameter if unbound.
value to return if this setting doesn't have a value.
currently bound setting value, or i
if unbound.
Internally used function for setting a value along with the .sbt
file location where it is defined.
Internally used function for setting a value along with the .sbt
file location where it is defined.
(Since version 0.13.2) Will be made private.
Identifies a setting. It consists of three parts: the scope, the name, and the type of a value associated with this key. The scope is represented by a value of type Scope. The name and the type are represented by a value of type
AttributeKey[T]
. Instances are constructed using the companion object.