(key: FlagKey)
| 41 | const optionSpecByKey = new Map(optionSpecs.map((spec) => [spec.key, spec])); |
| 42 | |
| 43 | export function getOptionSpec(key: FlagKey): OptionSpec | undefined { |
| 44 | return optionSpecByKey.get(key); |
| 45 | } |
| 46 | |
| 47 | export function getConfigurableOptionSpecs(command: string | null): OptionSpec[] { |
| 48 | return optionSpecs.filter((spec) => spec.config.enabled && spec.supportsCommand(command)); |
no test coverage detected