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

Function createCommandEntry

packages/app/src/components/dialog-select-file.tsx:68–76  ·  view source on GitHub ↗
(option: CommandOption, category: string)

Source from the content-addressed store, hash-verified

66}
67
68const createCommandEntry = (option: CommandOption, category: string): Entry => ({
69 id: "command:" + option.id,
70 type: "command",
71 title: option.title,
72 description: option.description,
73 keybind: option.keybind,
74 category,
75 option,
76})
77
78const createFileEntry = (path: string, category: string): Entry => ({
79 id: "file:" + path,

Callers 1

createCommandEntriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected