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

Function appendSnapshotActionScriptArgs

src/replay/script-utils.ts:150–159  ·  view source on GitHub ↗
(parts: string[], action: SessionAction)

Source from the content-addressed store, hash-verified

148}
149
150export function appendSnapshotActionScriptArgs(parts: string[], action: SessionAction): void {
151 if (action.flags?.snapshotInteractiveOnly) parts.push('-i');
152 if (typeof action.flags?.snapshotDepth === 'number') {
153 parts.push('-d', String(action.flags.snapshotDepth));
154 }
155 if (action.flags?.snapshotScope) {
156 parts.push('-s', formatScriptArg(action.flags.snapshotScope));
157 }
158 if (action.flags?.snapshotRaw) parts.push('--raw');
159}
160
161export function appendScreenshotActionScriptArgs(parts: string[], action: SessionAction): void {
162 for (const positional of action.positionals ?? []) {

Callers 1

formatPortableActionLineFunction · 0.90

Calls 2

formatScriptArgFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected