OpCredentials
Defined in: plugins/holocron-plugin-1password/src/capabilities/credentials.ts:31
credentials capability for 1Password, implemented by shelling out to op environment secret list.
Implements
Section titled “Implements”Credentials
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OpCredentials(
shell):OpCredentials
Defined in: plugins/holocron-plugin-1password/src/capabilities/credentials.ts:37
Parameters
Section titled “Parameters”Returns
Section titled “Returns”OpCredentials
Properties
Section titled “Properties”
readonlykey:"credentials"
Defined in: plugins/holocron-plugin-1password/src/capabilities/credentials.ts:33
Capability key; always "credentials".
Implementation of
Section titled “Implementation of”Credentials.key
providerName
Section titled “providerName”
readonlyproviderName:"1password"="1password"
Defined in: plugins/holocron-plugin-1password/src/capabilities/credentials.ts:35
Provider name; always "1password".
Implementation of
Section titled “Implementation of”Credentials.providerName
Methods
Section titled “Methods”inspect()
Section titled “inspect()”inspect(
environment):Promise<CredentialsInspection>
Defined in: plugins/holocron-plugin-1password/src/capabilities/credentials.ts:57
The Environment as op spells it, the names of its variables and which of them are visible, asked without
--reveal so no value is printed or kept: op shows a placeholder for each value, which is not read, and the
concealed flag that says secret from variable. Tries the same spellings as read.
Parameters
Section titled “Parameters”environment
Section titled “environment”string
Returns
Section titled “Returns”Promise<CredentialsInspection>
Implementation of
Section titled “Implementation of”Credentials.inspect
read()
Section titled “read()”read(
environment):Promise<Record<string,string>>
Defined in: plugins/holocron-plugin-1password/src/capabilities/credentials.ts:43
Every variable of the Environment, with values. Tries spellings of the name until op finds one;
any other failure (not signed in, a prompt that timed out) is thrown at once.
Parameters
Section titled “Parameters”environment
Section titled “environment”string
Returns
Section titled “Returns”Promise<Record<string, string>>
Implementation of
Section titled “Implementation of”Credentials.read
readSync()
Section titled “readSync()”readSync(
environment):Record<string,string>
Defined in: plugins/holocron-plugin-1password/src/capabilities/credentials.ts:48
read without waiting: op is run synchronously, so the CLI can read the Environment on the first lookup that needs it.
Parameters
Section titled “Parameters”environment
Section titled “environment”string
Returns
Section titled “Returns”Record<string, string>
Implementation of
Section titled “Implementation of”Credentials.readSync