MCPcopy Create free account
hub / github.com/Microck/opencode-studio / handleDelete

Function handleDelete

client-next/src/app/commands/page.tsx:117–127  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

115
116
117 const handleDelete = async (name: string) => {
118 if (!confirm(`Delete command "${name}"?`)) return;
119
120 try {
121 await deleteCommand(name);
122 toast.success(`Command "${name}" deleted`);
123 fetchCommands();
124 } catch {
125 toast.error("Failed to delete command");
126 }
127 };
128
129 const openEdit = (cmd: CommandEntry) => {
130 setEditingCmd({

Callers 1

CommandsPageFunction · 0.70

Calls 2

deleteCommandFunction · 0.90
fetchCommandsFunction · 0.85

Tested by

no test coverage detected