(command: CliCommandName)
| 30 | } |
| 31 | |
| 32 | export 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 | |
| 40 | function readCommandSchema(command: string): CommandSchema | undefined { |
| 41 | const schemaOnly = getSchemaOnlyCliCommandSchema(command); |
no test coverage detected