Skip to content

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.

  • Credentials

new OpCredentials(shell): OpCredentials

Defined in: plugins/holocron-plugin-1password/src/capabilities/credentials.ts:37

OpShell

OpCredentials

readonly key: "credentials"

Defined in: plugins/holocron-plugin-1password/src/capabilities/credentials.ts:33

Capability key; always "credentials".

Credentials.key


readonly providerName: "1password" = "1password"

Defined in: plugins/holocron-plugin-1password/src/capabilities/credentials.ts:35

Provider name; always "1password".

Credentials.providerName

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.

string

Promise<CredentialsInspection>

Credentials.inspect


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.

string

Promise<Record<string, string>>

Credentials.read


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.

string

Record<string, string>

Credentials.readSync