cmd

package
v0.0.0-...-d334e18 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2014 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console interface {
	Greet() string

	Prompt() string

	// Generic help string
	Help() string

	// Execute a command with its arguments, return whether or not to continue.
	Execute(cmd string, args []string, line []byte) bool
}

Interface for consoles

type ConsoleDoer

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

func NewConsoleDoer

func NewConsoleDoer(console Console, reader io.Reader, writer io.Writer) *ConsoleDoer

func (*ConsoleDoer) Run

func (c *ConsoleDoer) Run()

Execute a console implementation

Jump to

Keyboard shortcuts

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