MCPcopy Index your code
hub / github.com/callstack/agent-device / runCommand

Function runCommand

src/commands/command-surface.ts:14–20  ·  view source on GitHub ↗
(
  client: AgentDeviceClient,
  name: CommandName,
  input: unknown,
)

Source from the content-addressed store, hash-verified

12);
13
14export async function runCommand(
15 client: AgentDeviceClient,
16 name: CommandName,
17 input: unknown,
18): Promise<unknown> {
19 return await getCommandDefinition(name).invoke(client, input);
20}
21
22export function listExecutableCommandNames(): CommandName[] {
23 return [...commandMap.keys()].sort();

Callers 1

runCliCommandWithOutputFunction · 0.90

Calls 1

getCommandDefinitionFunction · 0.85

Tested by

no test coverage detected