750b7abcd5
- .claude/CLAUDE.md - .claude/agents/fn-recopilador/SKILL.md - .claude/rules/INDEX.md - .claude/rules/cpp_apps.md - bash/functions/infra/build_cpp_windows.sh - cpp/CMakeLists.txt - cpp/PATTERNS.md - cpp/framework/app_base.cpp - cpp/framework/app_base.h - dev/issues/README.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.3 KiB
1.3 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | params | output | tested | tests | test_file_path | file_path | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| keepass_get | function | bash | infra | 1.0.0 | impure | keepass_get(entry: string, attr?: string) -> string | Lee un atributo (Password por defecto) de una entry del KeePassXC database via keepassxc-cli. Resuelve master password desde pass (meta/keepassxc-master) o env KEEPASS_PASSWORD. |
|
false | error_go_core |
|
valor del atributo en texto plano (sin newline final) | false | bash/functions/infra/keepass_get.sh |
Ejemplo
export KEEPASS_DB="/mnt/d/Tr4Shhh_FOLDER/Sync/PssDtbs/PassDataBase.kdbx"
source keepass_get.sh
pwd=$(keepass_get "Servers/prod-mysql")
user=$(keepass_get "Servers/prod-mysql" UserName)
Setup
Master password se guarda una vez en pass:
pass insert meta/keepassxc-master
Notas
- Wrappea
keepassxc-cli show -s -a <attr>. - Cada call reabre la BD (CLI stateless). Para batch, usa
keepass_dump. KEEPASS_PASSWORDenv tiene prioridad sobrepass.