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.
32 lines
641 B
Markdown
32 lines
641 B
Markdown
---
|
|
name: run_cmd
|
|
kind: function
|
|
lang: go
|
|
domain: shell
|
|
version: "1.0.0"
|
|
purity: impure
|
|
signature: "func Run(name string, args ...string) core.Result[CmdResult]"
|
|
description: "Ejecuta un comando del sistema con timeout de 30 segundos y devuelve el resultado."
|
|
tags: [shell, command, process, exec]
|
|
uses_functions: []
|
|
uses_types: [cmd_result_go_shell, result_go_core]
|
|
returns: [result_go_core]
|
|
returns_optional: false
|
|
error_type: "error_go_core"
|
|
imports: []
|
|
tested: false
|
|
tests: []
|
|
test_file_path: ""
|
|
file_path: "functions/shell/run_cmd.go"
|
|
---
|
|
|
|
## Ejemplo
|
|
|
|
```go
|
|
result := Run("ls", "-la")
|
|
```
|
|
|
|
## Notas
|
|
|
|
Implementacion en devfactory/shell.
|