resolver property

CommandResolver<O, T>? resolver
final

When set, option-value completion resolves the command line typed so far and runs that chain's middleware before asking the option for candidates. The same goes for the arguments of a pass-through command, which that command completes.

Subcommand and option-name completion does not use it. Without a resolver, option values are completed from the raw command line only, and the shell completes the arguments of a pass-through command as files.

Implementation

final CommandResolver<O, T>? resolver;