Documentation
¶
Overview ¶
Package op resolves secrets from 1Password CLI for injection into cell containers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveItems ¶
ResolveItems calls `op item get` for each item name and returns a merged map of label→value for all fields that have both a label and a value. Items later in the slice win on key conflict.
Resolution is optimistic: a failure on one item is recorded in the returned []error slice and the loop continues with the next item. The caller is expected to surface the per-item errors and apply whatever did resolve.
func ShouldResolve ¶
ShouldResolve reports whether the caller should invoke `op item get` for the configured 1Password documents. Pure for testability: the caller threads in the boolean flag (--no-secrets / --no-1password), the env var value (DEVCELL_NO_SECRETS / DEVCELL_NO_1PASSWORD), and the resolved document list. Skip when there are no documents, when the user explicitly opted out via flag, or via a truthy env value.
Types ¶
This section is empty.