MCPcopy Index your code
hub / github.com/callstack/agent-device / getOptionSpec

Function getOptionSpec

src/utils/cli-option-schema.ts:43–45  ·  view source on GitHub ↗
(key: FlagKey)

Source from the content-addressed store, hash-verified

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

Callers 3

parseConfigObjectFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected