Skip to content

OpShell

Defined in: plugins/holocron-plugin-1password/src/shell.ts:47

Thin wrapper around spawnSync that runs the op CLI and returns a uniform result.

new OpShell(opts?): OpShell

Defined in: plugins/holocron-plugin-1password/src/shell.ts:54

OpShellOptions = {}

OpShell

readonly optional account?: string

Defined in: plugins/holocron-plugin-1password/src/shell.ts:52

The 1Password account UUID passed as --account on each call, when one is set.


readonly binary: string

Defined in: plugins/holocron-plugin-1password/src/shell.ts:50

The op binary this wrapper runs; defaults to "op".

run(args, opts?): OpResult

Defined in: plugins/holocron-plugin-1password/src/shell.ts:61

Run op <args>, returning a uniform result.

string[]

RunOptions = {}

OpResult


runOrThrow(args, context, opts?): string

Defined in: plugins/holocron-plugin-1password/src/shell.ts:79

Run + throw if non-zero. Mirrors REST clients’ request<T> ergonomic.

string[]

string

RunOptions = {}

string