(key: K)
| 15 | import { getOptions } from "../utils/zod"; |
| 16 | |
| 17 | export function buildCommandForConfigKey< |
| 18 | K extends keyof CommandlineConfigMetadataObject, |
| 19 | >(key: K): Command { |
| 20 | const configMeta = configMetadata[key]; |
| 21 | const commandMeta = commandlineConfigMetadata[key]; |
| 22 | const schema = ConfigSchemas.ConfigSchema.shape[key]; |
| 23 | |
| 24 | return _buildCommandForConfigKey(key, configMeta, commandMeta, schema); |
| 25 | } |
| 26 | function _buildCommandForConfigKey< |
| 27 | K extends keyof CommandlineConfigMetadataObject, |
| 28 | >( |