class BloopgunCli extends AnyRef
The main library entrypoint for bloopgun, the Bloop binary CLI.
It uses Nailgun to communicate to the Bloop server and has support for:
- Prints Bloop-specific feedback to the user to improve the CLI UX.
* Print custom error if user types
bloop repl
. * Recomend usingbloop --nailgun-help
ifhelp
set to print CLI help. 2. Starts the server if already not running or ifbloop server
is used. 3. Invokes Ammonite ifbloop console
is used and repl kind is default or matches Ammonite.
For the moment, this client doesn't do any kind of version handling so if the client and the server have serious incompatibilities the communication could crash. To avoid that users can forcefully exit the server and let the client start a session. Exiting requires the intervention of the user because it can affect already connected clients to the server instance.
- Alphabetic
- By Inheritance
- BloopgunCli
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Type Members
- type ExitServerStatus = (List[String], StatusCommand)
- sealed trait FireMode extends AnyRef
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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] )
- def fireServer(mode: FireMode, params: BloopgunParams, config: ServerConfig, bloopVersion: String, logger: SnailgunLogger): Option[Out]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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 run(args: Array[String]): Int
-
def
startServer(serverToRun: LocatedServer, config: ServerConfig, redirectOutErr: Boolean, logger: Logger): ExitServerStatus
Start a server with the executable present in
binary
.Start a server with the executable present in
binary
.This operation can take a while in some operating systems (most notably Windows, where antivirus programs slow down the execution of startup). Therefore, call sites usually start the server in background and wait on the value of
exitPromise
. The promise will not be completed so long as the server is running and at the end it will contain either a success or failure.- serverToRun
The server that we want to run.
- config
The configuration for the server we want to launch.
- redirectOutErr
Whether we should forward logs from the system process to the inherited streams. This is typically used when
bloop server
runs.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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 FireAndWaitForExit extends FireMode with Product with Serializable
- object FireInBackground extends FireMode with Product with Serializable