Graphorin API reference v0.5.0
Graphorin API reference / @graphorin/secret-1password / createOpCli
Function: createOpCli()
ts
function createOpCli(deps?): OpCli;Defined in: packages/secret-1password/src/op-cli.ts:127
OpCli factory with an injectable spawn (for tests). Production code uses createDefaultOpCli.
Parameters
| Parameter | Type |
|---|---|
deps | { spawn?: { (command, options?): ChildProcessWithoutNullStreams; (command, options): ChildProcessByStdio<Writable, Readable, Readable>; (command, options): ChildProcessByStdio<Writable, Readable, null>; (command, options): ChildProcessByStdio<Writable, null, Readable>; (command, options): ChildProcessByStdio<null, Readable, Readable>; (command, options): ChildProcessByStdio<Writable, null, null>; (command, options): ChildProcessByStdio<null, Readable, null>; (command, options): ChildProcessByStdio<null, null, Readable>; (command, options): ChildProcessByStdio<null, null, null>; (command, options): ChildProcess; (command, args?, options?): ChildProcessWithoutNullStreams; (command, args, options): ChildProcessByStdio<Writable, Readable, Readable>; (command, args, options): ChildProcessByStdio<Writable, Readable, null>; (command, args, options): ChildProcessByStdio<Writable, null, Readable>; (command, args, options): ChildProcessByStdio<null, Readable, Readable>; (command, args, options): ChildProcessByStdio<Writable, null, null>; (command, args, options): ChildProcessByStdio<null, Readable, null>; (command, args, options): ChildProcessByStdio<null, null, Readable>; (command, args, options): ChildProcessByStdio<null, null, null>; (command, args, options): ChildProcess; }; } |
deps.spawn? | { (command, options?): ChildProcessWithoutNullStreams; (command, options): ChildProcessByStdio<Writable, Readable, Readable>; (command, options): ChildProcessByStdio<Writable, Readable, null>; (command, options): ChildProcessByStdio<Writable, null, Readable>; (command, options): ChildProcessByStdio<null, Readable, Readable>; (command, options): ChildProcessByStdio<Writable, null, null>; (command, options): ChildProcessByStdio<null, Readable, null>; (command, options): ChildProcessByStdio<null, null, Readable>; (command, options): ChildProcessByStdio<null, null, null>; (command, options): ChildProcess; (command, args?, options?): ChildProcessWithoutNullStreams; (command, args, options): ChildProcessByStdio<Writable, Readable, Readable>; (command, args, options): ChildProcessByStdio<Writable, Readable, null>; (command, args, options): ChildProcessByStdio<Writable, null, Readable>; (command, args, options): ChildProcessByStdio<null, Readable, Readable>; (command, args, options): ChildProcessByStdio<Writable, null, null>; (command, args, options): ChildProcessByStdio<null, Readable, null>; (command, args, options): ChildProcessByStdio<null, null, Readable>; (command, args, options): ChildProcessByStdio<null, null, null>; (command, args, options): ChildProcess; } |