object Watched
- Source
- Watched.scala
- Alphabetic
- By Inheritance
- Watched
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
sealed
trait
Action extends AnyRef
This trait is used to communicate what the watch should do next at various points in time.
This trait is used to communicate what the watch should do next at various points in time. It is heavily linked to a number of callbacks in WatchConfig. For example, when the event monitor detects a changed source we expect WatchConfig.onWatchEvent to return Trigger.
-
trait
Custom extends Action
A user defined Action.
A user defined Action. It is not sealed so that the user can create custom instances. If any of the WatchConfig callbacks, e.g. WatchConfig.onWatchEvent, return an instance of Custom, the watch will terminate.
- type WatchSource = Source
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val AntiEntropy: FiniteDuration
- val Configuration: AttributeKey[Watched]
- val PollDelay: FiniteDuration
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val clearOnTrigger: (Int) ⇒ Option[String]
- def clearScreen: String
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
continuous(setup: WatchSetup): Command
Provides the '~' continuous execution command.
Provides the '~' continuous execution command.
- setup
a function that provides a logger and a function from (() => State) => State.
- returns
the '~' command.
- def createWatchService(): WatchService
- def createWatchService(pollDelay: FiniteDuration): WatchService
- val defaultOnTriggerMessage: (Int) ⇒ Option[String]
- val defaultStartWatch: (Int) ⇒ Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isEnter(key: Int): Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isR(key: Int): Boolean
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def printIfDefined(msg: String): Unit
- def projectOnWatchMessage(project: String): (Int) ⇒ Option[String]
- def projectWatchingMessage(projectId: String): (WatchState) ⇒ String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def terminateWatch(key: Int): Boolean
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
object
CancelWatch extends Action with Product with Serializable
Action that indicates that the watch should stop.
-
object
HandleError extends Action with Product with Serializable
Action that indicates that an error has occurred.
Action that indicates that an error has occurred. The watch will be terminated when this action is produced.
-
object
Ignore extends Action with Product with Serializable
Action that indicates that the watch should continue as though nothing happened.
Action that indicates that the watch should continue as though nothing happened. This may be because, for example, no user input was yet available in WatchConfig.handleInput.
-
object
Reload extends Action with Product with Serializable
Action that indicates that the watch should pause while the build is reloaded.
Action that indicates that the watch should pause while the build is reloaded. This is used to automatically reload the project when the build files (e.g. build.sbt) are changed.
-
object
Trigger extends Action with Product with Serializable
Action that indicates that the watch process should re-run the command.
- object WatchSource
Deprecated Value Members
-
val
ContinuousEventMonitor: AttributeKey[EventMonitor]
- Annotations
- @deprecated
- Deprecated
(Since version 1.3.0) ContinuousEventMonitor attribute is not used by Watched.command
-
val
ContinuousState: AttributeKey[WatchState]
- Annotations
- @deprecated
- Deprecated
(Since version 1.1.5) Superseded by ContinuousEventMonitor
-
val
ContinuousWatchService: AttributeKey[WatchService]
- Annotations
- @deprecated
- Deprecated
(Since version 1.1.5) Superseded by ContinuousEventMonitor
-
val
clearWhenTriggered: (WatchState) ⇒ String
- Annotations
- @deprecated
- Deprecated
(Since version 1.3.0) Use clearOnTrigger in conjunction with the watchTriggeredMessage key
-
val
defaultTriggeredMessage: (WatchState) ⇒ String
- Annotations
- @deprecated
- Deprecated
(Since version 1.3.0) Use defaultOnTriggerMessage in conjunction with the watchTriggeredMessage key
-
val
defaultWatchingMessage: (WatchState) ⇒ String
- Annotations
- @deprecated
- Deprecated
(Since version 1.3.0) Use defaultStartWatch in conjunction with the watchStartMessage key
-
def
empty: Watched
- Annotations
- @deprecated
- Deprecated
(Since version 1.3.0) This method is not used and may be removed in a future version of sbt
-
def
executeContinuously(watched: Watched, s: State, next: String, repeat: String): State
- Annotations
- @deprecated
- Deprecated
(Since version 1.3.0) Replaced by Watched.command
-
def
multi(base: Watched, paths: Seq[Watched]): Watched
- Annotations
- @deprecated
- Deprecated
(Since version 1.3.0) This method is not used and may be removed in a future version of sbt