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

Function readLegacyFlags

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

Source from the content-addressed store, hash-verified

123}
124
125function readLegacyFlags(value: unknown, stepNumber: number): Record<string, unknown> | undefined {
126 if (value === undefined) return undefined;
127 if (!isRecord(value)) {
128 throw new AppError('INVALID_ARGS', `Batch step ${stepNumber} flags must be an object.`);
129 }
130 return value;
131}
132
133function cliFlagsFromBatchStep(flags: Record<string, unknown> | undefined): CliFlags {
134 return {

Callers 1

readLegacyCliBatchStepFunction · 0.85

Calls 1

isRecordFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…