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

Function readLegacyPositionals

src/cli/batch-steps.ts:114–123  ·  view source on GitHub ↗
(value: unknown, stepNumber: number)

Source from the content-addressed store, hash-verified

112}
113
114function readLegacyPositionals(value: unknown, stepNumber: number): string[] | undefined {
115 if (value === undefined) return undefined;
116 if (!Array.isArray(value) || value.some((item) => typeof item !== 'string')) {
117 throw new AppError(
118 'INVALID_ARGS',
119 `Batch step ${stepNumber} positionals must contain only strings.`,
120 );
121 }
122 return value;
123}
124
125function readLegacyFlags(value: unknown, stepNumber: number): Record<string, unknown> | undefined {
126 if (value === undefined) return undefined;

Callers 1

readLegacyCliBatchStepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…