repl

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() string

GetVersion returns the version string from build info.

func IsInteractiveTerminal

func IsInteractiveTerminal() bool

IsInteractiveTerminal returns true if stdin is an interactive terminal.

func RunInteractive

func RunInteractive(ctx context.Context, sh *shell.Shell) error

RunInteractive starts an interactive REPL session.

func RunPiped

func RunPiped(ctx context.Context, sh *shell.Shell, r io.Reader) error

RunPiped executes commands from piped input (non-interactive mode).

func ShouldRunInteractive

func ShouldRunInteractive() bool

ShouldRunInteractive returns true if the shell should run in interactive mode.

Types

type REPLCompleter

type REPLCompleter struct {
	// contains filtered or unexported fields
}

REPLCompleter provides tab completion for the interactive REPL.

func (*REPLCompleter) Do

func (c *REPLCompleter) Do(line []rune, pos int) ([][]rune, int)

Jump to

Keyboard shortcuts

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