cfdf515228
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
36 lines
777 B
Markdown
36 lines
777 B
Markdown
---
|
|
name: run_shell
|
|
kind: function
|
|
lang: go
|
|
domain: shell
|
|
version: "1.0.0"
|
|
purity: impure
|
|
signature: "func RunShell(command string) core.Result[CmdResult]"
|
|
description: "Ejecuta un comando shell interpretado por /bin/sh."
|
|
tags: [shell, command, process, exec, pendiente-usar]
|
|
uses_functions: []
|
|
uses_types: [cmd_result_go_shell, result_go_core]
|
|
returns: [result_go_core]
|
|
returns_optional: false
|
|
error_type: "error_go_core"
|
|
imports: []
|
|
params:
|
|
- name: command
|
|
desc: "comando shell a ejecutar (ej: ls -la | grep go)"
|
|
output: "Result[CmdResult] con stdout, stderr, exit code"
|
|
tested: false
|
|
tests: []
|
|
test_file_path: ""
|
|
file_path: "functions/shell/run_shell.go"
|
|
---
|
|
|
|
## Ejemplo
|
|
|
|
```go
|
|
result := RunShell("ls -la | grep go")
|
|
```
|
|
|
|
## Notas
|
|
|
|
Implementacion en devfactory/shell.
|