package main
Code related to invoking Ammonite from the outside world: default configuration, running scripts, printing error messages, etc.
- Alphabetic
- By Inheritance
- main
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
object
Defaults
Constants used in the default configuration for the Ammonite REPL
-
object
ProxyFromEnv
Give Ammonite the ability to read (linux) system proxy environment variables and convert them into java proxy properties.
Give Ammonite the ability to read (linux) system proxy environment variables and convert them into java proxy properties. Which allows Ammonite to work through proxy automatically, instead of setting
System.properties
manually.Parameter pattern: https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html
-
object
Router
More or less a minimal version of Autowire's Server that lets you generate a set of "routes" from the methods defined in an object, and call them using passing in name/args/kwargs via Java reflection, without having to generate/compile code or use Scala reflection.
More or less a minimal version of Autowire's Server that lets you generate a set of "routes" from the methods defined in an object, and call them using passing in name/args/kwargs via Java reflection, without having to generate/compile code or use Scala reflection. This saves us spinning up the Scala compiler and greatly reduces the startup time of cached scripts.
-
object
Scripts
Logic around using Ammonite as a script-runner; invoking scripts via the macro-generated Router, and pretty-printing any output or error messages