Enkaidu::CLI::QueryReader
Inherits Reply::Reader < Reference < Object
Command-line query reader with editing and other capabilities.
Constants
Constructors
Instance methods
Override to integrate auto-completion.
current_word is picked following word_delimiters.
It expects to return Tuple with:
- a title :
String - the auto-completion results :
Array(String)
default: {"", [] of String}
Override to set the entire documentation for an autocompletion entry.
If not nil, the documentation is shown in its own alternate screen when alt-d is pressed.
default: nil
Override to indicate the Path|String|IO where the history is saved. If nil, the history is not persistent.
default: nil
Override to customize the prompt.
Toggle the colorization following color.
default: $:001>
Override to select which expression is saved in history.
default: !expression.blank?
Macros
Macro, because we don't want the doc generator to execute before we check the cache