MCPcopy Create free account
hub / github.com/bombshell-dev/clack / SelectOptions

Interface SelectOptions

packages/prompts/src/select.ts:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 };
73
74export interface SelectOptions<Value> extends CommonOptions {
75 message: string;
76 options: Option<Value>[];
77 initialValue?: Value;
78 maxItems?: number;
79 /**
80 * Show keyboard instructions below the option list.
81 * @default true
82 */
83 showInstructions?: boolean;
84}
85
86const computeLabel = (label: string, format: (text: string) => string) => {
87 if (!label.includes('\n')) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected