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.
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.
The colors that will be used to render the Ammonite REPL in the terminal
The colors that will be used to render the Ammonite REPL in the terminal
Access the compiler to do crazy things if you really want to!
Access the compiler to do crazy things if you really want to!
The front-end REPL used to take user input.
The front-end REPL used to take user input. Modifiable!
History of commands that have been entered into the shell, including previous sessions
History of commands that have been entered into the shell, including previous sessions
Current height of the terminal
Current height of the terminal
History of commands that have been entered into the shell during the current session
History of commands that have been entered into the shell during the current session
Show all the imports that are used to execute commands going forward
Show all the imports that are used to execute commands going forward
Tools related to loading external scripts and code into the REPL
Tools related to loading external scripts and code into the REPL
Throw away the current scala.tools.nsc.Global and get a new one
Throw away the current scala.tools.nsc.Global and get a new one
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
Read/writable prompt for the shell.
Read/writable prompt for the shell. Use this to change the REPL prompt at any time!
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.
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
Current width of the terminal
Current width of the terminal
Exit the Ammonite REPL.
Exit the Ammonite REPL. You can also use Ctrl-D to exit
Display help text if you don't know how to use the REPL
Display help text if you don't know how to use the REPL
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
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