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.
644 B
644 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_pipe | function | go | shell | 1.0.0 | impure | func RunPipe(commands ...string) core.Result[CmdResult] | Encadena multiples comandos con pipe y devuelve el resultado final. |
|
|
|
false | error_go_core | false | functions/shell/run_pipe.go |
Ejemplo
result := RunPipe("ls -la", "grep go", "wc -l")
Notas
Implementacion en devfactory/shell.