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

Function handleEdit

src/components/SlashCommandsManager.tsx:155–166  ·  view source on GitHub ↗
(command: SlashCommand)

Source from the content-addressed store, hash-verified

153 };
154
155 const handleEdit = (command: SlashCommand) => {
156 setEditingCommand(command);
157 setCommandForm({
158 name: command.name,
159 namespace: command.namespace || "",
160 content: command.content,
161 description: command.description || "",
162 allowedTools: command.allowed_tools,
163 scope: command.scope as 'project' | 'user'
164 });
165 setEditDialogOpen(true);
166 };
167
168 const handleSave = async () => {
169 try {

Callers 1

SlashCommandsManagerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected