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

Function getCliCommandSchema

src/utils/command-schema.ts:32–38  ·  view source on GitHub ↗
(command: CliCommandName)

Source from the content-addressed store, hash-verified

30}
31
32export function getCliCommandSchema(command: CliCommandName): CommandSchema {
33 const schema = readCommandSchema(command);
34 if (!schema) {
35 throw new Error(`Missing command schema for ${command}`);
36 }
37 return schema;
38}
39
40function readCommandSchema(command: string): CommandSchema | undefined {
41 const schemaOnly = getSchemaOnlyCliCommandSchema(command);

Callers 3

buildOptionSpecsFunction · 0.90
args.test.tsFile · 0.90
renderUsageTextFunction · 0.90

Calls 1

readCommandSchemaFunction · 0.85

Tested by

no test coverage detected