Skip to content

VerifyInput

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

Inputs for checking that the op binary is installed.

optional binary?: string

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

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


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