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.
617 B
617 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_shell | function | go | shell | 1.0.0 | impure | func RunShell(command string) core.Result[CmdResult] | Ejecuta un comando shell interpretado por /bin/sh. |
|
|
|
false | error_go_core | false | functions/shell/run_shell.go |
Ejemplo
result := RunShell("ls -la | grep go")
Notas
Implementacion en devfactory/shell.