2f95dcc076
Tipo cmd_result (product: Stdout, Stderr, ExitCode). Funciones: Run, RunWithTimeout, RunShell, RunShellTimeout, RunPipe (impuras) y Which (pura). Stubs que documentan devfactory/shell para el registry.
722 B
722 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 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| run_cmd_timeout | function | go | shell | 1.0.0 | impure | func RunWithTimeout(name string, timeout time.Duration, args ...string) core.Result[CmdResult] | Ejecuta un comando del sistema con timeout configurable. |
|
|
|
false | error_go_core |
|
false | functions/shell/run_cmd_timeout.go |
Ejemplo
result := RunWithTimeout("curl", 5*time.Second, "https://example.com")
Notas
Implementacion en devfactory/shell.