Files
fn_registry/functions/shell/which.md
T
egutierrez 5f4f1f7508 docs: params/output semántico en 506 funciones para composabilidad
Añade campos params y output al frontmatter YAML de las 506 funciones del registry.
Cada parámetro tiene descripción semántica (qué representa, unidades, rango típico)
y cada función describe qué produce su output. Permite a agentes razonar sobre
cadenas de composición (ej: prices → log_return → sharpe_ratio) sin leer código.
2026-04-05 18:45:16 +02:00

36 lines
703 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]
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.