Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPromptAborted = errors.New("prompt aborted")
ErrPromptAborted is the error for prompt aborted. i.e. ctrl+d. not implement for go prompt
Functions ¶
This section is empty.
Types ¶
type Cli ¶
type GoPromptTerminal ¶
type GoPromptTerminal struct {
// contains filtered or unexported fields
}
func (*GoPromptTerminal) AppendHistory ¶
func (g *GoPromptTerminal) AppendHistory(item string)
func (*GoPromptTerminal) Close ¶
func (g *GoPromptTerminal) Close()
func (*GoPromptTerminal) ReadHistory ¶
func (g *GoPromptTerminal) ReadHistory(r io.Reader) error
TODO should enhance go-prompt
func (*GoPromptTerminal) WriteHistory ¶
func (g *GoPromptTerminal) WriteHistory(w io.Writer) error
TODO go-prompt has no interface to write history.
type LinerTerminal ¶
type LinerTerminal struct {
// contains filtered or unexported fields
}
func (*LinerTerminal) AppendHistory ¶
func (l *LinerTerminal) AppendHistory(item string)
func (*LinerTerminal) Close ¶
func (l *LinerTerminal) Close()
func (*LinerTerminal) ReadHistory ¶
func (l *LinerTerminal) ReadHistory(r io.Reader) error
func (*LinerTerminal) WriteHistory ¶
func (l *LinerTerminal) WriteHistory(w io.Writer) error
Click to show internal directories.
Click to hide internal directories.