OptionValueCompletion<O extends OptionDefinition, T> class

Completes an option value after resolving the command line typed so far.

Uses resolver for the configurations, then runs the middleware of those commands in completion mode. complete is called where the leaf command's run would run, so each middleware's onRun has finished and its onReturn runs afterwards. No command run method is called. See completeAtLeaf.

Constructors

OptionValueCompletion(CommandResolver<O, T> resolver)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
resolver → CommandResolver<O, T>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

completeOption(CompletionPrelude prelude, FutureOr<CompletionResult> complete(CompletionContext context), {required ContextProvider provider}) → Future<CompletionResult>
Resolves prelude with provider and runs that chain's middleware.
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