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

Function deleteCommand

client-next/src/lib/api.ts:362–368  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

360}
361
362export async function deleteCommand(name: string): Promise<void> {
363 const config = await getConfig();
364 if (config.command) {
365 const { [name]: removed, ...rest } = config.command;
366 await saveConfig({ ...config, command: rest });
367 }
368}
369
370export interface BackupData {
371 version: number;

Callers 3

handleEditSaveFunction · 0.90
handleDeleteFunction · 0.90
handleSaveFunction · 0.90

Calls 2

getConfigFunction · 0.85
saveConfigFunction · 0.70

Tested by

no test coverage detected