package line
Import Path
github.com/reeflective/console/internal/line (on go.dev)
Dependency Relation
imports 8 packages, and imported by 2 packages
Package-Level Functions (total 8)
acceptMultiline determines if the line just accepted is complete (in which case
we should execute it), or incomplete (in which case we must read in multiline).
HighlightCommand applies highlighting to commands in an input line.
HighlightCommand applies highlighting to command flags in an input line.
IsEmpty checks if a given input line is empty.
It accepts a list of characters that we consider to be irrelevant,
that is, if the given line only contains these characters, it will
be considered empty.
Parse is in charge of removing all comments from the input line
before execution, and if successfully parsed, split into words.
Split has been copied from go-shellquote and slightly modified so as to also
return the remainder when the parsing failed because of an unterminated quote.
TrimSpaces removes all leading/trailing spaces from words
UnescapeValue is used When the completer has returned us some completions,
we sometimes need to post-process them a little before passing them to our shell.
Package-Level Variables (total 23)
var BlinkReset string
Effects reset.
var BrightWhiteFG string var DoubleChar rune var EscapeChar rune
Colors
Base text effects.
var ReverseReset string var SingleChar rune var SplitChars string var Underscore string
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |