shell

package
v0.0.0-...-176f8cf Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrShellInvalidArgs = errors.New("Invalid args")
)

Functions

This section is empty.

Types

type Command

type Command interface {
	Exec(shell *Shell, args []string)
}

type FakeUser

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

type Shell

type Shell struct {
	io.ReadWriter

	OnStart func(*Shell)
	// contains filtered or unexported fields
}

func NewShell

func NewShell(server api.Server, model *model.AyiModel, io io.ReadWriter, cfg api.Config) *Shell

func (*Shell) Run

func (s *Shell) Run()

Shell wrapper to manage errors

Jump to

Keyboard shortcuts

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