CompletionPrelude class
The command line state for one option-value completion.
parsedArgs is the parse of the words including a placeholder for the value being completed. Configurations are resolved from precedingWords only, so that placeholder is not a resolved option value.
Constructors
-
CompletionPrelude({required String wordToComplete, required List<
String> precedingWords, required List<CommandDefinition< commands, required ParsedArgs parsedArgs, required Map<OptionDefinition> >String, String> environment}) -
const
Properties
-
commands
→ List<
CommandDefinition< OptionDefinition> > -
final
-
environment
→ Map<
String, String> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- parsedArgs → ParsedArgs
-
final
-
precedingWords
→ List<
String> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wordToComplete → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited