MCPcopy Create free account
hub / github.com/anomalyco/opencode / run

Function run

packages/app/src/context/command.tsx:363–366  ·  view source on GitHub ↗
(id: string, source?: CommandSource)

Source from the content-addressed store, hash-verified

361 })
362
363 const run = (id: string, source?: CommandSource) => {
364 const option = optionMap().get(id)
365 option?.onSelect?.(source)
366 }
367
368 const showPalette = () => {
369 run("file.open", "palette")

Callers 5

showPaletteFunction · 0.70
triggerFunction · 0.70
onPersistedInitFunction · 0.50
withBenchmarkPageFunction · 0.50
measureSessionSwitchFunction · 0.50

Calls 1

getMethod · 0.65

Tested by

no test coverage detected