---
name: pass_get
kind: function
lang: bash
domain: infra
version: "1.0.0"
purity: impure
signature: "pass_get(entry: string) -> string"
description: "Lee un secreto del password store (pass) y lo imprime a stdout."
tags: [pass, secret, credential, get]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: "error_go_core"
imports: []
params:
  - name: entry
    desc: "ruta de entrada en el password store"
output: "valor del secreto en texto plano"
tested: true
tests: ["lee entrada existente", "falla con entrada inexistente"]
test_file_path: "bash/functions/infra/pass_test.sh"
file_path: "bash/functions/infra/pass_get.sh"
---

## Ejemplo

```bash
source pass_get.sh
token=$(pass_get agentes/dataforge-token)
export GITEA_TOKEN="$token"
```

## Notas

Usa `pass show` internamente. Requiere GPG key desbloqueada. No imprime newline final (usa printf %s).
