MCPcopy
hub / github.com/cursor/cookbook / selectCommandOption

Function selectCommandOption

sdk/coding-agent-cli/src/tui/App.tsx:346–351  ·  view source on GitHub ↗
(_index: number, option: SelectOption | null)

Source from the content-addressed store, hash-verified

344 }
345
346 const selectCommandOption = (_index: number, option: SelectOption | null) => {
347 const item = toCommandSelectItem(option, commandItems)
348 if (item) {
349 selectCommand(item)
350 }
351 }
352
353 const selectModelOption = (_index: number, option: SelectOption | null) => {
354 const item = toModelSelectItem(option, filteredModelItems)

Callers

nothing calls this directly

Calls 2

toCommandSelectItemFunction · 0.85
selectCommandFunction · 0.85

Tested by

no test coverage detected