OpPluginOptions
Defined in: plugins/holocron-plugin-1password/src/index.ts:20
Options for the 1Password plugin: the vault and account to use plus the op binary overrides.
Extends
Section titled “Extends”Properties
Section titled “Properties”account?
Section titled “account?”
optionalaccount?:string
Defined in: plugins/holocron-plugin-1password/src/index.ts:29
Optional 1P account UUID; passed as --account on every op call. Useful when several accounts are signed in.
binary?
Section titled “binary?”
optionalbinary?:string
Defined in: plugins/holocron-plugin-1password/src/auth.ts:25
Path to the op binary. Defaults to “op”.
Inherited from
Section titled “Inherited from”environment?
Section titled “environment?”
optionalenvironment?:string
Defined in: plugins/holocron-plugin-1password/src/index.ts:27
The Environment readSecret reads a variable from by its bare name; the one an app keeps its secrets in.
repoRoot?
Section titled “repoRoot?”
optionalrepoRoot?:string
Defined in: plugins/holocron-plugin-1password/src/index.ts:31
The repository root, handed in by the CLI: where export-environment writes .credentials and finds a layer word’s remote.
spawn?
Section titled “spawn?”
optionalspawn?: {(command):SpawnSyncReturns<NonSharedBuffer>; (command,options):SpawnSyncReturns<string>; (command,options):SpawnSyncReturns<NonSharedBuffer>; (command,options?):SpawnSyncReturns<string|NonSharedBuffer>; (command,args):SpawnSyncReturns<NonSharedBuffer>; (command,args,options):SpawnSyncReturns<string>; (command,args,options):SpawnSyncReturns<NonSharedBuffer>; (command,args?,options?):SpawnSyncReturns<string|NonSharedBuffer>; }
Defined in: plugins/holocron-plugin-1password/src/auth.ts:23
Override the spawn function in tests.
Call Signature
Section titled “Call Signature”(
command):SpawnSyncReturns<NonSharedBuffer>
The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return
until the child process has fully closed. When a timeout has been encountered
and killSignal is sent, the method won’t return until the process has
completely exited. If the process intercepts and handles the SIGTERM signal
and doesn’t exit, the parent process will wait until the child process has
exited.
If the shell option is enabled, do not pass unsanitized user input to this
function. Any input containing shell metacharacters may be used to trigger
arbitrary command execution.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
Returns
Section titled “Returns”SpawnSyncReturns<NonSharedBuffer>
v0.11.12
Call Signature
Section titled “Call Signature”(
command,options):SpawnSyncReturns<string>
The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return
until the child process has fully closed. When a timeout has been encountered
and killSignal is sent, the method won’t return until the process has
completely exited. If the process intercepts and handles the SIGTERM signal
and doesn’t exit, the parent process will wait until the child process has
exited.
If the shell option is enabled, do not pass unsanitized user input to this
function. Any input containing shell metacharacters may be used to trigger
arbitrary command execution.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
options
Section titled “options”SpawnSyncOptionsWithStringEncoding
Returns
Section titled “Returns”SpawnSyncReturns<string>
v0.11.12
Call Signature
Section titled “Call Signature”(
command,options):SpawnSyncReturns<NonSharedBuffer>
The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return
until the child process has fully closed. When a timeout has been encountered
and killSignal is sent, the method won’t return until the process has
completely exited. If the process intercepts and handles the SIGTERM signal
and doesn’t exit, the parent process will wait until the child process has
exited.
If the shell option is enabled, do not pass unsanitized user input to this
function. Any input containing shell metacharacters may be used to trigger
arbitrary command execution.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
options
Section titled “options”SpawnSyncOptionsWithBufferEncoding
Returns
Section titled “Returns”SpawnSyncReturns<NonSharedBuffer>
v0.11.12
Call Signature
Section titled “Call Signature”(
command,options?):SpawnSyncReturns<string|NonSharedBuffer>
The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return
until the child process has fully closed. When a timeout has been encountered
and killSignal is sent, the method won’t return until the process has
completely exited. If the process intercepts and handles the SIGTERM signal
and doesn’t exit, the parent process will wait until the child process has
exited.
If the shell option is enabled, do not pass unsanitized user input to this
function. Any input containing shell metacharacters may be used to trigger
arbitrary command execution.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
options?
Section titled “options?”SpawnSyncOptions
Returns
Section titled “Returns”SpawnSyncReturns<string | NonSharedBuffer>
v0.11.12
Call Signature
Section titled “Call Signature”(
command,args):SpawnSyncReturns<NonSharedBuffer>
The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return
until the child process has fully closed. When a timeout has been encountered
and killSignal is sent, the method won’t return until the process has
completely exited. If the process intercepts and handles the SIGTERM signal
and doesn’t exit, the parent process will wait until the child process has
exited.
If the shell option is enabled, do not pass unsanitized user input to this
function. Any input containing shell metacharacters may be used to trigger
arbitrary command execution.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
readonly string[]
List of string arguments.
Returns
Section titled “Returns”SpawnSyncReturns<NonSharedBuffer>
v0.11.12
Call Signature
Section titled “Call Signature”(
command,args,options):SpawnSyncReturns<string>
The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return
until the child process has fully closed. When a timeout has been encountered
and killSignal is sent, the method won’t return until the process has
completely exited. If the process intercepts and handles the SIGTERM signal
and doesn’t exit, the parent process will wait until the child process has
exited.
If the shell option is enabled, do not pass unsanitized user input to this
function. Any input containing shell metacharacters may be used to trigger
arbitrary command execution.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
readonly string[]
List of string arguments.
options
Section titled “options”SpawnSyncOptionsWithStringEncoding
Returns
Section titled “Returns”SpawnSyncReturns<string>
v0.11.12
Call Signature
Section titled “Call Signature”(
command,args,options):SpawnSyncReturns<NonSharedBuffer>
The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return
until the child process has fully closed. When a timeout has been encountered
and killSignal is sent, the method won’t return until the process has
completely exited. If the process intercepts and handles the SIGTERM signal
and doesn’t exit, the parent process will wait until the child process has
exited.
If the shell option is enabled, do not pass unsanitized user input to this
function. Any input containing shell metacharacters may be used to trigger
arbitrary command execution.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
readonly string[]
List of string arguments.
options
Section titled “options”SpawnSyncOptionsWithBufferEncoding
Returns
Section titled “Returns”SpawnSyncReturns<NonSharedBuffer>
v0.11.12
Call Signature
Section titled “Call Signature”(
command,args?,options?):SpawnSyncReturns<string|NonSharedBuffer>
The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return
until the child process has fully closed. When a timeout has been encountered
and killSignal is sent, the method won’t return until the process has
completely exited. If the process intercepts and handles the SIGTERM signal
and doesn’t exit, the parent process will wait until the child process has
exited.
If the shell option is enabled, do not pass unsanitized user input to this
function. Any input containing shell metacharacters may be used to trigger
arbitrary command execution.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
readonly string[]
List of string arguments.
options?
Section titled “options?”SpawnSyncOptions
Returns
Section titled “Returns”SpawnSyncReturns<string | NonSharedBuffer>
v0.11.12
Inherited from
Section titled “Inherited from”vault?
Section titled “vault?”
optionalvault?:string
Defined in: plugins/holocron-plugin-1password/src/index.ts:25
1P vault name items live in. Only listing a vault’s items needs it; Environments are not in a vault, so a project that only reads an Environment can leave it out.