Skip to content

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.

optional account?: 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.


optional binary?: string

Defined in: plugins/holocron-plugin-1password/src/auth.ts:25

Path to the op binary. Defaults to “op”.

VerifyInput.binary


optional environment?: 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.


optional repoRoot?: 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.


optional spawn?: {(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.

(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.

string

The command to run.

SpawnSyncReturns<NonSharedBuffer>

v0.11.12

(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.

string

The command to run.

SpawnSyncOptionsWithStringEncoding

SpawnSyncReturns<string>

v0.11.12

(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.

string

The command to run.

SpawnSyncOptionsWithBufferEncoding

SpawnSyncReturns<NonSharedBuffer>

v0.11.12

(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.

string

The command to run.

SpawnSyncOptions

SpawnSyncReturns<string | NonSharedBuffer>

v0.11.12

(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.

string

The command to run.

readonly string[]

List of string arguments.

SpawnSyncReturns<NonSharedBuffer>

v0.11.12

(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.

string

The command to run.

readonly string[]

List of string arguments.

SpawnSyncOptionsWithStringEncoding

SpawnSyncReturns<string>

v0.11.12

(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.

string

The command to run.

readonly string[]

List of string arguments.

SpawnSyncOptionsWithBufferEncoding

SpawnSyncReturns<NonSharedBuffer>

v0.11.12

(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.

string

The command to run.

readonly string[]

List of string arguments.

SpawnSyncOptions

SpawnSyncReturns<string | NonSharedBuffer>

v0.11.12

VerifyInput.spawn


optional vault?: 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.