rushstack.io
Docs API News GitHub Help
https://github.com/octogonz

    << Docs Index

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

    CommandLineChoiceParameter.completions property

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

    Signature:

    readonly completions: (() => Promise<string[]>) | undefined;
    

    Remarks

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

    © 2021 Microsoft

    • Docs
    • API
    • News
    • GitHub
    • Help