Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LineReader ¶
type LineReader struct {
// contains filtered or unexported fields
}
func New ¶
func New(prompt string) (*LineReader, error)
func (*LineReader) Close ¶
func (lr *LineReader) Close() error
func (*LineReader) Prompt ¶
func (lr *LineReader) Prompt()
func (*LineReader) Read ¶
func (lr *LineReader) Read() (string, Command, error)
Read reads a single character from the user's input, and then returns the current input. Note that for certain actions (e.g. moving the cursor) the input returned by Read may be the same as the previous input. It is up to the caller to deduplicate responses if they care to.
Click to show internal directories.
Click to hide internal directories.