Trait/Object

ammonite.repl.frontend

ReplAPI

Related Docs: object ReplAPI | package frontend

Permalink

trait ReplAPI extends OpsAPI

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReplAPI
  2. OpsAPI
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. implicit abstract def Relativizer[T](p: T)(implicit b: Path, f: (T) ⇒ RelPath): Path

    Permalink

    Allows you to use relative paths (and anything convertible to a relative path) as absolute paths when working in the REPL.

    Allows you to use relative paths (and anything convertible to a relative path) as absolute paths when working in the REPL. Note that this isn't available when using Ammonite-Ops in a standalone project! In such cases, it's good practice to convert paths from relative to absolute explicitly.

    Definition Classes
    OpsAPI
  2. abstract val cd: Op1[Path, Path]

    Permalink

    Change the working directory wd; if the provided path is relative it gets appended on to the current wd, if it's absolute it replaces.

    Change the working directory wd; if the provided path is relative it gets appended on to the current wd, if it's absolute it replaces.

    Definition Classes
    OpsAPI
  3. abstract val colors: Ref[Colors]

    Permalink

    The colors that will be used to render the Ammonite REPL in the terminal

  4. abstract def compiler: Global

    Permalink

    Access the compiler to do crazy things if you really want to!

  5. abstract val frontEnd: Ref[FrontEnd]

    Permalink

    The front-end REPL used to take user input.

    The front-end REPL used to take user input. Modifiable!

  6. abstract def fullHistory: History

    Permalink

    History of commands that have been entered into the shell, including previous sessions

  7. abstract def height: Int

    Permalink

    Current height of the terminal

  8. abstract def help: String

    Permalink

    Display help text if you don't know how to use the REPL

  9. abstract def history: History

    Permalink

    History of commands that have been entered into the shell during the current session

  10. abstract def imports: String

    Permalink

    Show all the imports that are used to execute commands going forward

  11. abstract def load: Load

    Permalink

    Tools related to loading external scripts and code into the REPL

  12. abstract def newCompiler(): Unit

    Permalink

    Throw away the current scala.tools.nsc.Global and get a new one

  13. implicit abstract val pprintConfig: Ref[Config]

    Permalink

    Controls how things are pretty-printed in the REPL.

    Controls how things are pretty-printed in the REPL. Feel free to shadow this with your own definition to change how things look

  14. abstract val prompt: Ref[String]

    Permalink

    Read/writable prompt for the shell.

    Read/writable prompt for the shell. Use this to change the REPL prompt at any time!

  15. abstract def show[T](t: T, width: Integer = 0, height: Integer = null, indent: Integer = null, colors: pprint.Colors = null)(implicit arg0: PPrint[T], cfg: Config = Config.Defaults.PPrintConfig): Unit

    Permalink
  16. abstract def show[T](implicit arg0: PPrint[T], cfg: Config): (T) ⇒ Unit

    Permalink

    Lets you configure the pretty-printing of a value.

    Lets you configure the pretty-printing of a value. By default, it simply disables truncation and prints the entire thing, but you can set other parameters as well if you want.

  17. abstract def typeOf[T](t: ⇒ T)(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T]): scala.reflect.api.JavaUniverse.Type

    Permalink

    Get the Type object representing the type of t.

    Get the Type object representing the type of t. Useful for finding what its methods are and what you can do with it

  18. abstract def typeOf[T](implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[T]): scala.reflect.api.JavaUniverse.Type

    Permalink

    Get the Type object of T.

    Get the Type object of T. Useful for finding what its methods are and what you can do with it

  19. implicit abstract def wd: Path

    Permalink

    The current working directory of the shell, that will get picked up by any Relativizer below, and can be modified using cd

    The current working directory of the shell, that will get picked up by any Relativizer below, and can be modified using cd

    Definition Classes
    OpsAPI
  20. abstract def width: Int

    Permalink

    Current width of the terminal

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. implicit def derefPPrint(implicit t: Ref[Config]): Config

    Permalink
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def exit: Nothing

    Permalink

    Exit the Ammonite REPL.

    Exit the Ammonite REPL. You can also use Ctrl-D to exit

  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from OpsAPI

Inherited from AnyRef

Inherited from Any

Ungrouped