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

Function shield

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

Source from the content-addressed store, hash-verified

1622 name in commands ? getCommandArgSpec(commands[name].args) : undefined;
1623
1624 function shield(argv: string[]) {
1625 const {argv: shielded, restore} = shieldLiteralArgs(argv, getSpec);
1626 return {
1627 shielded,
1628 restored: shielded.map(restore),
1629 literalIndexes: shielded.flatMap((t, i) => (t !== argv[i] ? [i] : [])),
1630 };
1631 }
1632
1633 it('passes regular args through unchanged', () => {
1634 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