Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/ts-command-line > ICommandLineChoiceDefinition > completions

ICommandLineChoiceDefinition.completions property

An optional callback that provides a list of custom choices for tab completion.

Signature:

completions?: () => Promise<ReadonlyArray<TChoice> | ReadonlySet<TChoice>>;

Remarks

This option is only used when ICommandLineParserOptions.enableTabCompletionAction is enabled.