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

Function primaryFlagDefinition

src/utils/cli-option-schema.ts:108–114  ·  view source on GitHub ↗
(spec: OptionSpec)

Source from the content-addressed store, hash-verified

106}
107
108function primaryFlagDefinition(spec: OptionSpec): FlagDefinition {
109 const definition = spec.flagDefinitions[0];
110 if (!definition) {
111 throw new Error(`Missing flag definition for option ${spec.key}`);
112 }
113 return definition;
114}
115
116export function resolveSourceValueDefinition(spec: OptionSpec): FlagDefinition {
117 const explicitValueDefinition = spec.flagDefinitions.find(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected