shell

package
v1.10.12 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Name() string
	Describe() string
	Run(buf io.Writer, err io.Writer, args []string)
}

type Shell

type Shell interface {
	Run(buf io.Writer, err io.Writer, args []string)
	Add(prefix string, cmd ...Command)
	Get(cmd string) []Command
	Desc(cmd string) map[string]string
	Walk(fct func(name string, item Command) (Command, liberr.Error)) liberr.Error

	//go prompt
	RunPrompt(out, err io.Writer, opt ...prompt.Option)
}

func New

func New() Shell

Jump to

Keyboard shortcuts

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