Documentation
¶
Index ¶
- Constants
- func GetStdinForREPL() io.ReadCloser
- func HistoryFilePath(filename string) (string, error)
- func NewPromptEvaluationError(message string) error
- func NewTerminal(ctx context.Context, scope *query.ReferenceScope) (query.VirtualTerminal, error)
- type Completer
- func (c *Completer) AddFlagArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) AllColumnList() []string
- func (c *Completer) AlterArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) BracketIsEnclosed() bool
- func (c *Completer) CaseExpression(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) ColumnList(tableName string, repository string) []string
- func (c *Completer) CreateArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) CursorStatus(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) DeclareArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) DeleteArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) DisposeArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) Do(line []rune, pos int, index int) (readline.CandidateList, int)
- func (c *Completer) EncloseQuotation(line string, origLine string, _ int) readline.CandidateList
- func (c *Completer) FetchArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) FunctionArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) GetStatementPrefix(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) InsertArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) ListFiles(path string, includeExt []string, repository string) []string
- func (c *Completer) PrepareArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) RemoveFlagArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) ReplaceArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) SearchAllTables(line string, _ string, _ int) readline.CandidateList
- func (c *Completer) SearchAllTablesWithSpace(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) SearchDirs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) SearchExecutableFiles(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) SearchValues(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) SearchValuesWithSpace(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) SelectArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) SetArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) SetLastIndex(line string)
- func (c *Completer) ShowArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) Statements(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) TableObjectArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) Update()
- func (c *Completer) UpdateArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) UpdateTokens(line string, origLine string)
- func (c *Completer) UsingArgs(line string, origLine string, index int) readline.CandidateList
- func (c *Completer) WithArgs(line string, origLine string, index int) readline.CandidateList
- type Prompt
- func (p *Prompt) LoadConfig() error
- func (p *Prompt) Render(ctx context.Context, sequence []PromptElement) (string, error)
- func (p *Prompt) RenderContinuousPrompt(ctx context.Context) (string, error)
- func (p *Prompt) RenderPrompt(ctx context.Context) (string, error)
- func (p *Prompt) StripEscapeSequence(s string) string
- type PromptElement
- type PromptEvaluationError
- type ReadLineTerminal
- func (t ReadLineTerminal) GetSize() (int, int, error)
- func (t ReadLineTerminal) ReadLine() (string, error)
- func (t ReadLineTerminal) ReloadConfig() error
- func (t ReadLineTerminal) SaveHistory(s string) error
- func (t ReadLineTerminal) SetContinuousPrompt(ctx context.Context)
- func (t ReadLineTerminal) SetPrompt(ctx context.Context)
- func (t ReadLineTerminal) Teardown() error
- func (t ReadLineTerminal) UpdateCompleter()
- func (t ReadLineTerminal) Write(s string) error
- func (t ReadLineTerminal) WriteError(s string) error
- type ReadlineListener
Constants ¶
View Source
const ( DefaultPrompt string = "csvq > " DefaultContinuousPrompt string = " > " )
Variables ¶
This section is empty.
Functions ¶
func GetStdinForREPL ¶
func GetStdinForREPL() io.ReadCloser
func HistoryFilePath ¶
func NewTerminal ¶
func NewTerminal(ctx context.Context, scope *query.ReferenceScope) (query.VirtualTerminal, error)
Types ¶
type Completer ¶
type Completer struct {
// contains filtered or unexported fields
}
func NewCompleter ¶
func NewCompleter(scope *query.ReferenceScope) *Completer
func (*Completer) AddFlagArgs ¶
func (*Completer) AllColumnList ¶
func (*Completer) BracketIsEnclosed ¶
func (*Completer) CaseExpression ¶
func (*Completer) ColumnList ¶
func (*Completer) CreateArgs ¶
func (*Completer) CursorStatus ¶
func (*Completer) DeclareArgs ¶
func (*Completer) DeleteArgs ¶
func (*Completer) DisposeArgs ¶
func (*Completer) EncloseQuotation ¶
func (*Completer) FunctionArgs ¶
func (*Completer) GetStatementPrefix ¶
func (*Completer) InsertArgs ¶
func (*Completer) PrepareArgs ¶
func (*Completer) RemoveFlagArgs ¶
func (*Completer) ReplaceArgs ¶
func (*Completer) SearchAllTables ¶
func (*Completer) SearchAllTablesWithSpace ¶
func (*Completer) SearchDirs ¶
func (*Completer) SearchExecutableFiles ¶
func (*Completer) SearchValues ¶
func (*Completer) SearchValuesWithSpace ¶
func (*Completer) SelectArgs ¶
func (*Completer) SetLastIndex ¶
func (*Completer) Statements ¶
func (*Completer) TableObjectArgs ¶
func (*Completer) UpdateArgs ¶
func (*Completer) UpdateTokens ¶
type Prompt ¶
type Prompt struct {
// contains filtered or unexported fields
}
func NewPrompt ¶
func NewPrompt(scope *query.ReferenceScope) *Prompt
func (*Prompt) LoadConfig ¶
func (*Prompt) RenderContinuousPrompt ¶
func (*Prompt) StripEscapeSequence ¶
type PromptElement ¶
type PromptElement struct { Text string Type excmd.ElementType }
type PromptEvaluationError ¶
type PromptEvaluationError struct {
Message string
}
func (PromptEvaluationError) Error ¶
func (e PromptEvaluationError) Error() string
type ReadLineTerminal ¶
type ReadLineTerminal struct {
// contains filtered or unexported fields
}
func (ReadLineTerminal) ReadLine ¶
func (t ReadLineTerminal) ReadLine() (string, error)
func (ReadLineTerminal) ReloadConfig ¶
func (t ReadLineTerminal) ReloadConfig() error
func (ReadLineTerminal) SaveHistory ¶
func (t ReadLineTerminal) SaveHistory(s string) error
func (ReadLineTerminal) SetContinuousPrompt ¶
func (t ReadLineTerminal) SetContinuousPrompt(ctx context.Context)
func (ReadLineTerminal) SetPrompt ¶
func (t ReadLineTerminal) SetPrompt(ctx context.Context)
func (ReadLineTerminal) Teardown ¶
func (t ReadLineTerminal) Teardown() error
func (ReadLineTerminal) UpdateCompleter ¶
func (t ReadLineTerminal) UpdateCompleter()
func (ReadLineTerminal) Write ¶
func (t ReadLineTerminal) Write(s string) error
func (ReadLineTerminal) WriteError ¶
func (t ReadLineTerminal) WriteError(s string) error
Click to show internal directories.
Click to hide internal directories.