(command: string)
| 38 | } |
| 39 | |
| 40 | function readCommandSchema(command: string): CommandSchema | undefined { |
| 41 | const schemaOnly = getSchemaOnlyCliCommandSchema(command); |
| 42 | if (schemaOnly) return schemaOnly; |
| 43 | const base = COMMAND_SCHEMA_BASES.get(command); |
| 44 | const override = getCliCommandOverride(command); |
| 45 | if (!base) return undefined; |
| 46 | return override ? { ...base, ...override } : base; |
| 47 | } |
| 48 | |
| 49 | export function applyCommandDefaults( |
| 50 | command: string | null, |
no test coverage detected