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

Function selectCommand

sdk/coding-agent-cli/src/tui/App.tsx:342–344  ·  view source on GitHub ↗
(item: CommandSelectItem)

Source from the content-addressed store, hash-verified

340 }
341
342 const selectCommand = (item: CommandSelectItem) => {
343 void runCommand(item.value)
344 }
345
346 const selectCommandOption = (_index: number, option: SelectOption | null) => {
347 const item = toCommandSelectItem(option, commandItems)

Callers 1

selectCommandOptionFunction · 0.85

Calls 1

runCommandFunction · 0.70

Tested by

no test coverage detected