struct Jargon::Completion::Context

Overview

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.

Defined in:

jargon/completion.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(partial : String, words : Array(String), subcommand : String | Nil, arguments : Hash(String, String)) #

[View source]

Instance Method Detail

def arguments : Hash(String, String) #

[View source]
def partial : String #

[View source]
def subcommand : String | Nil #

[View source]
def words : Array(String) #

[View source]