MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / shield

Function shield

tests/cli.test.ts:1426–1433  ·  view source on GitHub ↗
(argv: string[])

Source from the content-addressed store, hash-verified

1424 name in commands ? getCommandArgSpec(commands[name].args) : undefined;
1425
1426 function shield(argv: string[]) {
1427 const {argv: shielded, restore} = shieldLiteralArgs(argv, getSpec);
1428 return {
1429 shielded,
1430 restored: shielded.map(restore),
1431 literalIndexes: shielded.flatMap((t, i) => (t !== argv[i] ? [i] : [])),
1432 };
1433 }
1434
1435 it('passes regular args through unchanged', () => {
1436 const input = ['fill', '1', '1_1', 'a-b', '-5', '--output-format', 'json'];

Callers 1

cli.test.tsFile · 0.70

Calls 1

shieldLiteralArgsFunction · 0.85

Tested by

no test coverage detected