| 71 | } |
| 72 | |
| 73 | interface JsonSchema { |
| 74 | type?: string | string[]; |
| 75 | description?: string; |
| 76 | properties?: Record<string, JsonSchema>; |
| 77 | required?: string[]; |
| 78 | default?: unknown; |
| 79 | enum?: unknown[]; |
| 80 | } |
| 81 | |
| 82 | function schemaToCLIOptions(schema: JsonSchema): CliOption[] { |
| 83 | if (!schema || !schema.properties) { |
nothing calls this directly
no outgoing calls
no test coverage detected