Files
fn_registry/functions/shell/which.md
T
egutierrez 47fac22230 chore: auto-commit (799 archivos)
- .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>
2026-05-14 00:28:20 +02:00

36 lines
719 B
Markdown

---
name: which
kind: function
lang: go
domain: shell
version: "1.0.0"
purity: pure
signature: "func Which(name string) core.Option[string]"
description: "Busca la ruta de un ejecutable en el PATH del sistema. Devuelve None si no existe."
tags: [shell, path, lookup, pendiente-usar]
uses_functions: []
uses_types: [option_go_core]
returns: [option_go_core]
returns_optional: false
error_type: ""
imports: []
params:
- name: name
desc: "nombre del ejecutable a buscar"
output: "Option[string]: Some(ruta_absoluta) o None si no existe"
tested: false
tests: []
test_file_path: ""
file_path: "functions/shell/which.go"
---
## Ejemplo
```go
path := Which("docker")
```
## Notas
Implementacion en devfactory/shell.