Home > @rushstack/ts-command-line > CommandLineParameterWithArgument > getCompletionsAsync
CommandLineParameterWithArgument.getCompletionsAsync property
An optional callback that provides a list of custom choices for tab completion.
Signature:
readonly getCompletionsAsync: (() => Promise<ReadonlyArray<string> | ReadonlySet<string>>) | undefined;
Remarks
This option is only used when ICommandLineParserOptions.enableTabCompletionAction is enabled.