completePassThroughArgs method

FutureOr<CompletionResponse> completePassThroughArgs(
  1. CommandContext<O, T> context,
  2. List<String> words
)
inherited

Completes the arguments of this pass-through command, see passThroughArgs.

words are the arguments after this command that are typed so far. The last one is the (possibly empty) word being completed.

context is the context of this command, resolved from the command line before the word being completed. This is called where runAsLeaf would be when the command line is run, inside the middleware of the commands, with CommandContext.runMode being CommandRunMode.completion.

The default requests file completion from the shell. To offer what another program offers, return requestCompletionFrom(program, words).

If this throws, nothing is offered.

Implementation

FutureOr<CompletionResponse> completePassThroughArgs(
  final CommandContext<O, T> context,
  final List<String> words,
) => const CompletionResponse.files();