Documentation
¶
Overview ¶
Package lineedit is wctr's interactive line editor: a thin adapter over the standard-library-only core, github.com/go-wasmcontainers/engine/ lineedit (see its documentation for the editor, ParseKeys, Renderer and Reader), plus WctrCompleter, which completes through cobra's __complete and so needs engine/cli. Everything the package exported before the core was split out is re-exported here as an alias, so the playground and the dashboard compile unchanged.
Code that must not link engine/cli (and so net/http) — the guest shell — imports the core directly.
Index ¶
Constants ¶
View Source
const ( KeyRune = core.KeyRune KeyEnter = core.KeyEnter KeyBackspace = core.KeyBackspace KeyDelete = core.KeyDelete KeyLeft = core.KeyLeft KeyRight = core.KeyRight KeyHome = core.KeyHome KeyEnd = core.KeyEnd KeyUp = core.KeyUp KeyDown = core.KeyDown KeyTab = core.KeyTab KeyEscape = core.KeyEscape KeyCtrlA = core.KeyCtrlA KeyCtrlB = core.KeyCtrlB KeyCtrlC = core.KeyCtrlC KeyCtrlD = core.KeyCtrlD KeyCtrlE = core.KeyCtrlE KeyCtrlF = core.KeyCtrlF KeyCtrlG = core.KeyCtrlG KeyCtrlK = core.KeyCtrlK KeyCtrlL = core.KeyCtrlL KeyCtrlN = core.KeyCtrlN KeyCtrlP = core.KeyCtrlP KeyCtrlR = core.KeyCtrlR KeyCtrlU = core.KeyCtrlU KeyCtrlW = core.KeyCtrlW KeyUnknown = core.KeyUnknown // MaxLine bounds the line being edited, in runes. MaxLine = core.MaxLine )
The keys.
Variables ¶
View Source
var ( ErrUnterminated = core.ErrUnterminated ErrInterrupt = core.ErrInterrupt )
ErrUnterminated and ErrInterrupt are the core's errors.
View Source
var ( // New returns an editor. New = core.New // R is a character key. R = core.R // ParseKeys turns terminal input into keys. ParseKeys = core.ParseKeys // Format lays candidates out for a terminal. Format = core.Format // Split splits a line into words, shell-style. Split = core.Split // SplitPartial splits a line prefix into the words before the one being // typed and that word. SplitPartial = core.SplitPartial // Quote quotes a completion for the line's quoting. Quote = core.Quote )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.