Home > @rushstack/ts-command-line > ICommandLineChoiceListDefinition
ICommandLineChoiceListDefinition interface
For use with CommandLineParameterProvider.defineChoiceListParameter(), this interface defines a command line parameter which is constrained to a list of possible options. The parameter can be specified multiple times to build a list.
Signature:
export interface ICommandLineChoiceListDefinition<TChoice extends string = string> extends IBaseCommandLineDefinition
Extends: IBaseCommandLineDefinition
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
ReadonlyArray<TChoice> | ReadonlySet<TChoice> | A list of strings (which contain no spaces), of possible options which can be selected | ||
() => Promise<ReadonlyArray<TChoice> | ReadonlySet<TChoice>> | (Optional) An optional callback that provides a list of custom choices for tab completion. |