struct

Jargon::Completion::Context

Inherits Struct < Value < Object

Context handed to a registered completer block. partial is the token being completed; words is the full command line as the shell tokenized it (program name at index 0); subcommand is the resolved subcommand path (nil at top level); arguments is a lenient parse of what has been typed so far, for filtering.

Constructors

new(partial : String, words : Array(String), subcommand : String | Nil, arguments : Hash(String, String))
Source

Instance methods

arguments
Source
partial
Source
subcommand
Source
words
Source