Documentation
¶
Overview ¶
Package repl is the read-eval-print loop a bare ant command runs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run reads inputs from stdin until it ends, evaluating each on one session, printing every non-void result with String.from, and reporting errors on stderr. On a terminal it edits each line with the keys of readline, highlights it as it is typed, and completes names, members, and arguments with Tab, suggesting the first after the cursor. A line that begins with a colon is a command (:help lists them). It returns the exit status: 130 when ctx ends first, which is an interrupt, as it ends a run, or when Ctrl-C is pressed twice in a row at the prompt.
Types ¶
This section is empty.