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

Function getCommand

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

Source from the content-addressed store, hash-verified

341}
342
343export async function getCommand(name: string): Promise<{ template: string }> {
344 const config = await getConfig();
345 const cmd = config.command?.[name];
346 if (!cmd) throw new Error('Command not found');
347 return cmd;
348}
349
350export async function saveCommand(name: string, template: string): Promise<void> {
351 const config = await getConfig();

Callers 1

loadFileFunction · 0.90

Calls 1

getConfigFunction · 0.85

Tested by

no test coverage detected