MCPcopy Index your code
hub / github.com/winfunc/opcode / applyExample

Function applyExample

src/components/SlashCommandsManager.tsx:249–257  ·  view source on GitHub ↗
(example: typeof EXAMPLE_COMMANDS[0])

Source from the content-addressed store, hash-verified

247 };
248
249 const applyExample = (example: typeof EXAMPLE_COMMANDS[0]) => {
250 setCommandForm(prev => ({
251 ...prev,
252 name: example.name,
253 description: example.description,
254 content: example.content,
255 allowedTools: example.allowedTools
256 }));
257 };
258
259 // Filter commands
260 const filteredCommands = commands.filter(cmd => {

Callers 1

SlashCommandsManagerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected