repl

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

repl provides a simple Read-Eval-Print-Loop (REPL) to issue commands to an integrated client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(symbol string, cmd Command)

AddCommand adds a command using the specific symbol.

Types

type Command

type Command interface {
	Exec(r *REPL, args ...string)
}

Command is a command executed by the REPL.

type REPL

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

REPL is a Read-Eval-Print-Loop (REPL).

func (*REPL) Run

func (r *REPL) Run()

Run executes the Read-Eval-Print-Loop (REPL). This will block until the loop is done.

Directories

Path Synopsis
package commands contains commands that can be executed by the REPL.
package commands contains commands that can be executed by the REPL.

Jump to

Keyboard shortcuts

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