Packages

c

bloop.bloopgun

BloopgunCli

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:

  1. Prints Bloop-specific feedback to the user to improve the CLI UX. * Print custom error if user types bloop repl. * Recomend using bloop --nailgun-help if help set to print CLI help. 2. Starts the server if already not running or if bloop server is used. 3. Invokes Ammonite if bloop 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.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BloopgunCli
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BloopgunCli(bloopVersion: String, in: InputStream, out: PrintStream, err: PrintStream, shell: Shell)

Type Members

  1. type ExitServerStatus = (List[String], StatusCommand)
  2. sealed trait FireMode extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def fireServer(mode: FireMode, params: BloopgunParams, config: ServerConfig, bloopVersion: String, logger: SnailgunLogger): Option[Out]
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. def run(args: Array[String]): Int
  17. 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.

  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  23. object FireAndWaitForExit extends FireMode with Product with Serializable
  24. object FireInBackground extends FireMode with Product with Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped