Documentation
¶
Overview ¶
Package repl implements the interactive shell: line editing, completion, highlighting, meta commands and query execution with cancellation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDuration ¶
FormatDuration renders a duration coarsely, the way people say it: "43m", "2h 5m".
Types ¶
type Options ¶
type Options struct {
Config *config.Resolved
Client *chclient.Client // runs the user's statements
Auth auth.Provider
Meta *metadata.Cache
History *history.History // nil disables persistent history
// HistorySize bounds the in-memory history.
HistorySize int
Format string
// Pager is the command interactive table output is piped through; empty disables paging.
Pager string
}
Options wires the shell to the rest of the program.
Click to show internal directories.
Click to hide internal directories.