MCPcopy Index your code
hub / github.com/cursor/cookbook / toCommandSelectItem

Function toCommandSelectItem

sdk/coding-agent-cli/src/tui/App.tsx:1118–1127  ·  view source on GitHub ↗
(
  option: SelectOption | null,
  items: CommandSelectItem[]
)

Source from the content-addressed store, hash-verified

1116}
1117
1118function toCommandSelectItem(
1119 option: SelectOption | null,
1120 items: CommandSelectItem[]
1121) {
1122 if (!option) {
1123 return undefined
1124 }
1125
1126 return items.find((item) => item.value === option.value)
1127}
1128
1129function toModelSelectItem(option: SelectOption | null, items: ModelSelectItem[]) {
1130 if (!option) {

Callers 1

selectCommandOptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected