package line

Import Path
	github.com/reeflective/console/internal/line (on go.dev)

Dependency Relation
	imports 8 packages, and imported by 2 packages

Involved Source Files highlight.go line.go
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.