feat: tipo CmdResult y 6 funciones shell — ejecucion de comandos del sistema
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.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package shell
|
||||
|
||||
// CmdResult almacena el resultado de ejecutar un comando del sistema.
|
||||
// Implementation: github.com/lucasdataproyects/devfactory/shell
|
||||
type CmdResult struct {
|
||||
Stdout string
|
||||
Stderr string
|
||||
ExitCode int
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
---
|
||||
name: cmd_result
|
||||
lang: go
|
||||
domain: shell
|
||||
version: "1.0.0"
|
||||
algebraic: product
|
||||
definition: |
|
||||
type CmdResult struct {
|
||||
Stdout string
|
||||
Stderr string
|
||||
ExitCode int
|
||||
}
|
||||
description: "Resultado de la ejecucion de un comando del sistema con stdout, stderr y codigo de salida."
|
||||
tags: [shell, command, process, result]
|
||||
uses_types: []
|
||||
file_path: "types/shell/cmd_result.go"
|
||||
---
|
||||
|
||||
## Notas
|
||||
|
||||
Tipo producto. Metodos Output(), Lines(), Success(), ToResult() disponibles sobre la instancia.
|
||||
Reference in New Issue
Block a user