op

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveItems

func ResolveItems(items []string) (map[string]string, []error)

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 added in v0.8.0

func ShouldResolve(disableFlag bool, envValue string, docs []string) bool

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-1password`), the env var value (`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 (CELL-42).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL