cmd

package
v0.0.0-...-ee419b2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source

Functions

func Add

func Add(cmd Cmd)

func Handler

func Handler(term *term.Terminal)

func Help

func Help(term *term.Terminal) string

func SerialConsole

func SerialConsole(rw io.ReadWriter)

Types

type Cmd

type Cmd struct {
	Name    string
	Args    int
	Pattern *regexp.Regexp
	Syntax  string
	Help    string
	Fn      CmdFn
}

type CmdFn

type CmdFn func(term *term.Terminal, arg []string) (res string, err error)

Jump to

Keyboard shortcuts

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