Files
fn_registry/bash/functions/shell/assert_command_exists.md
T
egutierrez 3043518fec docs: CLAUDE.md actualizado con fn run, tipos Go en functions/, bash functions
Documentación de fn run para todos los lenguajes, nueva ubicación de tipos Go,
sección de uso por agentes. Añadidas funciones Bash del registry (shell, infra,
core, pipelines).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 23:23:30 +01:00

899 B

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, 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 tested tests test_file_path file_path
assert_command_exists function bash shell 1.0.0 impure assert_command_exists(command_name: string) -> void Verifica que un comando está disponible en el PATH. Sale con exit code 1 si no se encuentra, con mensaje a stderr.
assert
command
exists
validation
shell
bash
path
false error_go_core
false
bash/functions/shell/assert_command_exists.sh

Ejemplo

source functions/shell/assert_command_exists.sh

assert_command_exists docker
assert_command_exists jq

Notas

Usa command -v (POSIX) con redirección &>/dev/null para suprimir output. No produce nada a stdout en caso de éxito.

Output limpio: void en éxito, mensaje a stderr en fallo.