final case class State(configuration: AppConfiguration, definedCommands: Seq[Command], exitHooks: Set[ExitHook], onFailure: Option[Exec], remainingCommands: List[Exec], history: History, attributes: AttributeMap, globalLogging: GlobalLogging, currentCommand: Option[Exec], next: Next) extends Identity with Product with Serializable
Data structure representing all command execution information.
- configuration
provides access to the launcher environment, including the application configuration, Scala versions, jvm/filesystem wide locking, and the launcher itself
- definedCommands
the list of command definitions that evaluate command strings. These may be modified to change the available commands.
- exitHooks
code to run before sbt exits, usually to ensure resources are cleaned up.
- onFailure
the command to execute when another command fails.
onFailure
is cleared before the failure handling command is executed.- remainingCommands
the sequence of commands to execute. This sequence may be modified to change the commands to be executed. Typically, the
::
and:::
methods are used to prepend new commands to run.- history
tracks the recently executed commands
- attributes
custom command state. It is important to clean up attributes when no longer needed to avoid memory leaks and class loader leaks.
- next
the next action for the command processor to take. This may be to continue with the next command, adjust global logging, or exit.
- Alphabetic
- By Inheritance
- State
- Serializable
- Serializable
- Product
- Equals
- Identity
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
State(configuration: AppConfiguration, definedCommands: Seq[Command], exitHooks: Set[ExitHook], onFailure: Option[Exec], remainingCommands: List[Exec], history: History, attributes: AttributeMap, globalLogging: GlobalLogging, currentCommand: Option[Exec], next: Next)
- configuration
provides access to the launcher environment, including the application configuration, Scala versions, jvm/filesystem wide locking, and the launcher itself
- definedCommands
the list of command definitions that evaluate command strings. These may be modified to change the available commands.
- exitHooks
code to run before sbt exits, usually to ensure resources are cleaned up.
- onFailure
the command to execute when another command fails.
onFailure
is cleared before the failure handling command is executed.- remainingCommands
the sequence of commands to execute. This sequence may be modified to change the commands to be executed. Typically, the
::
and:::
methods are used to prepend new commands to run.- history
tracks the recently executed commands
- attributes
custom command state. It is important to clean up attributes when no longer needed to avoid memory leaks and class loader leaks.
- next
the next action for the command processor to take. This may be to continue with the next command, adjust global logging, or exit.
Value Members
- val attributes: AttributeMap
- lazy val combinedParser: Parser[() ⇒ State]
- val configuration: AppConfiguration
- val currentCommand: Option[Exec]
- val definedCommands: Seq[Command]
-
final
def
equals(a: Any): Boolean
- Definition Classes
- Identity → AnyRef → Any
- val exitHooks: Set[ExitHook]
- val globalLogging: GlobalLogging
-
final
def
hashCode(): Int
- Definition Classes
- Identity → AnyRef → Any
- val history: History
- val next: Next
- val onFailure: Option[Exec]
- val remainingCommands: List[Exec]
- def source: Option[CommandSource]
-
final
def
toString(): String
- Definition Classes
- Identity → AnyRef → Any