repl

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2026 License: MIT Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func Run(ctx context.Context, stdin io.Reader, stdout, stderr io.Writer) int

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL