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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OpShell(
opts?):OpShell
Defined in: plugins/holocron-plugin-1password/src/shell.ts:54
Parameters
Section titled “Parameters”OpShellOptions = {}
Returns
Section titled “Returns”OpShell
Properties
Section titled “Properties”account?
Section titled “account?”
readonlyoptionalaccount?: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.
binary
Section titled “binary”
readonlybinary:string
Defined in: plugins/holocron-plugin-1password/src/shell.ts:50
The op binary this wrapper runs; defaults to "op".
Methods
Section titled “Methods”run(
args,opts?):OpResult
Defined in: plugins/holocron-plugin-1password/src/shell.ts:61
Run op <args>, returning a uniform result.
Parameters
Section titled “Parameters”string[]
RunOptions = {}
Returns
Section titled “Returns”OpResult
runOrThrow()
Section titled “runOrThrow()”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.
Parameters
Section titled “Parameters”string[]
context
Section titled “context”string
RunOptions = {}
Returns
Section titled “Returns”string