Packages

c

sbt.State

StateOpsImpl

implicit final class StateOpsImpl extends AnyVal with StateOps

Provides operations and transformations on State.

Linear Supertypes
StateOps, AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StateOpsImpl
  2. StateOps
  3. AnyVal
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StateOpsImpl(s: State)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(newCommand: Command): State

    Registers newCommand as an available command.

    Registers newCommand as an available command.

    Definition Classes
    StateOpsImplStateOps
  4. def ++(newCommands: Seq[Command]): State

    Registers newCommands as available commands.

    Registers newCommands as available commands.

    Definition Classes
    StateOpsImplStateOps
  5. def ++:(newCommands: List[Exec]): State

    Schedules commands to be run before any remaining commands.

    Schedules commands to be run before any remaining commands.

    Definition Classes
    StateOpsImplStateOps
  6. def +:(command: Exec): State

    Schedules command to be run before any remaining commands.

    Schedules command to be run before any remaining commands.

    Definition Classes
    StateOpsImplStateOps
  7. def ::(command: String): State

    Schedules command to be run before any remaining commands.

    Schedules command to be run before any remaining commands.

    Definition Classes
    StateOpsImplStateOps
  8. def :::(newCommands: List[String]): State

    Schedules commands to be run before any remaining commands.

    Schedules commands to be run before any remaining commands.

    Definition Classes
    StateOpsImplStateOps
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  10. def addExitHook(act: ⇒ Unit): State

    Registers a new exit hook, which will run when sbt exits or restarts.

    Registers a new exit hook, which will run when sbt exits or restarts.

    Definition Classes
    StateOpsImplStateOps
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def baseDir: File

    The application base directory, which is not necessarily the current working directory.

    The application base directory, which is not necessarily the current working directory.

    Definition Classes
    StateOpsImplStateOps
  13. def classLoaderCache: ClassLoaderCache

    Get the class loader cache for the application.

    Get the class loader cache for the application.

    Definition Classes
    StateOpsImplStateOps
  14. def clearGlobalLog: State

    Sets the next command processing action to be to rotate the global log and continue executing commands.

    Sets the next command processing action to be to rotate the global log and continue executing commands.

    Definition Classes
    StateOpsImplStateOps
  15. def continue: State

    Sets the next command processing action to be to continue processing the next command.

    Sets the next command processing action to be to continue processing the next command.

    Definition Classes
    StateOpsImplStateOps
  16. def exit(ok: Boolean): State

    Sets the next command processing action to be to exit with a zero exit code if ok is true and a nonzero exit code if ok if false.

    Sets the next command processing action to be to exit with a zero exit code if ok is true and a nonzero exit code if ok if false.

    Definition Classes
    StateOpsImplStateOps
  17. def fail: State

    Marks the currently executing command as failing.

    Marks the currently executing command as failing. This triggers failure handling by the command processor. See also State.onFailure

    Definition Classes
    StateOpsImplStateOps
  18. def get[T](key: AttributeKey[T]): Option[T]

    Gets the value associated with key from the custom attributes map.

    Gets the value associated with key from the custom attributes map.

    Definition Classes
    StateOpsImplStateOps
  19. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  20. def handleError(t: Throwable): State

    Marks the currently executing command as failing due to the given exception.

    Marks the currently executing command as failing due to the given exception. This displays the error appropriately and triggers failure handling by the command processor. Note that this does not throw an exception and returns normally. It is only once control is returned to the command processor that failure handling at the command level occurs.

    Definition Classes
    StateOpsImplStateOps
  21. def has(key: AttributeKey[_]): Boolean

    Returns true if key exists in the custom attributes map, false if it does not exist.

    Returns true if key exists in the custom attributes map, false if it does not exist.

    Definition Classes
    StateOpsImplStateOps
  22. def initializeClassLoaderCache: State

    Create and register a class loader cache.

    Create and register a class loader cache. This should be called once at the application entry-point.

    Definition Classes
    StateOpsImplStateOps
  23. def interactive: Boolean

    An advisory flag that is true if this application will execute commands based on user input.

    An advisory flag that is true if this application will execute commands based on user input.

    Definition Classes
    StateOpsImplStateOps
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def keepLastLog: State

    Sets the next command processing action to be to keep the previous log and continue executing commands.

    Sets the next command processing action to be to keep the previous log and continue executing commands.

    Definition Classes
    StateOpsImplStateOps
  26. def locked[T](file: File)(t: ⇒ T): T

    Evaluates the provided expression with a JVM-wide and machine-wide lock on file.

    Evaluates the provided expression with a JVM-wide and machine-wide lock on file.

    Definition Classes
    StateOpsImplStateOps
  27. def log: ManagedLogger

    The Logger used for general command logging.

    The Logger used for general command logging.

    Definition Classes
    StateOpsImplStateOps
  28. def process(f: (Exec, State) ⇒ State): State
    Definition Classes
    StateOpsImplStateOps
  29. def put[T](key: AttributeKey[T], value: T): State

    Sets the value associated with key in the custom attributes map.

    Sets the value associated with key in the custom attributes map.

    Definition Classes
    StateOpsImplStateOps
  30. def reboot(full: Boolean): State

    Implementation of reboot.

    Implementation of reboot.

    Definition Classes
    StateOpsImplStateOps
  31. def reload: State

    Restarts sbt without dropping loaded Scala classes.

    Restarts sbt without dropping loaded Scala classes. It is a shallower restart than reboot. This method takes a snapshot of the remaining commands and will resume executing those commands after reload. This means that any commands added to this State will be dropped.

    Definition Classes
    StateOpsImplStateOps
  32. def remove(key: AttributeKey[_]): State

    Removes the key and any associated value from the custom attributes map.

    Removes the key and any associated value from the custom attributes map.

    Definition Classes
    StateOpsImplStateOps
  33. def runExitHooks(): State

    Runs any defined exitHooks and then clears them.

    Runs any defined exitHooks and then clears them.

    Definition Classes
    StateOpsImplStateOps
  34. val s: State
  35. def setInteractive(i: Boolean): State

    Changes the advisory interactive flag.

    Changes the advisory interactive flag.

    Definition Classes
    StateOpsImplStateOps
  36. def setNext(n: Next): State

    Sets the next command processing action to do.

    Sets the next command processing action to do.

    Definition Classes
    StateOpsImplStateOps
  37. def toString(): String
    Definition Classes
    Any
  38. def update[T](key: AttributeKey[T])(f: (Option[T]) ⇒ T): State

    Sets the value associated with key in the custom attributes map by transforming the current value.

    Sets the value associated with key in the custom attributes map by transforming the current value.

    Definition Classes
    StateOpsImplStateOps

Inherited from StateOps

Inherited from AnyVal

Inherited from Any

Ungrouped