repl

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package repl is a simple read-eval-print loop. It calls the Consumer to do all the eval work.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ask

func Ask(prompt string) (string, error)

func AskForPassword

func AskForPassword() (string, error)

func AskForUserPass

func AskForUserPass() (string, string, error)

func Run

func Run(c Consumer) error

Run executes the REPL.

Types

type Consumer

type Consumer interface {
	Consume(line string) bool
	Prompt() string
}

Jump to

Keyboard shortcuts

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