Athena::Console::Completion::Input
Inherits Athena::Console::Input::ARGV / Athena::Console::Input / Athena::Console::Input::Streamable / Athena::Console::Input::Interface / Reference / Object
A specialization of ACON::Input::ARGV that allows for unfinished name/values.
Exposes information about the name, type, and value of the value/name being completed.
Constructors
from_string(input : String, current_index : Int32) : self
Sourcefrom_tokens(tokens : Array(String), current_index : Int32) : self
SourceInstance methods
bind(definition : ACON::Input::Definition) : Nil
Binds the provided definition to self.
Essentially provides what should be parsed from self.
ameba:disable Metrics/CyclomaticComplexity
must_suggest_argument_values_for?(argument_name : String) : Bool
Returns true if this input is able to suggest values for the provided argument_name.
must_suggest_option_values_for?(option_name : String) : Bool
Returns true if this input is able to suggest values for the provided option_name.
relevant_token
Returns the current token of the cursor, or last token if the cursor is at the end of the input.