47fac22230
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
42 lines
956 B
Markdown
42 lines
956 B
Markdown
---
|
|
name: keepass_search
|
|
kind: function
|
|
lang: bash
|
|
domain: infra
|
|
version: "1.0.0"
|
|
purity: impure
|
|
signature: "keepass_search(term: string) -> json"
|
|
description: "Busca entries en el KeePassXC database por substring. Devuelve array JSON de paths que matchean (title/username/url/notes)."
|
|
tags: [keepass, keepassxc, search, query, pendiente-usar]
|
|
uses_functions: []
|
|
uses_types: []
|
|
returns: []
|
|
returns_optional: false
|
|
error_type: "error_go_core"
|
|
imports: []
|
|
params:
|
|
- name: term
|
|
desc: "substring a buscar (case-insensitive)"
|
|
output: "array JSON de strings con paths matched, ej: [\"Servers/prod\", \"Web/github\"]"
|
|
tested: false
|
|
tests: []
|
|
test_file_path: ""
|
|
file_path: "bash/functions/infra/keepass_search.sh"
|
|
---
|
|
|
|
## Ejemplo
|
|
|
|
```bash
|
|
source keepass_search.sh
|
|
matches=$(keepass_search "github")
|
|
# [
|
|
# "Web/github-personal",
|
|
# "Web/github-work"
|
|
# ]
|
|
```
|
|
|
|
## Notas
|
|
|
|
- Wrappea `keepassxc-cli search`.
|
|
- El leading `/` del CLI se quita antes de devolver.
|