printCompletionScript function
Future<void>
printCompletionScript(
- CommandRunner<
OptionDefinition, dynamic> runner, - CompletionShell shell, {
- String? commandName,
Writes the completion script of shell for runner to
CompletionSettings.sinks. See writeCompletionOutput.
commandName generates the script for a wrapper of the executable
instead, see CompletionShell.script.
Implementation
Future<void> printCompletionScript(
final CommandRunner runner,
final CompletionShell shell, {
final String? commandName,
}) {
return writeCompletionOutput(
runner,
_CompletionRequest(runner, shell, commandName).script,
);
}