MCPcopy Create free account
hub / github.com/diillson/chatcli / Output

Method Output

utils/exec_utils.go:22–25  ·  view source on GitHub ↗

Output executa um comando e retorna sua saída padrão.

(name string, arg ...string)

Source from the content-addressed store, hash-verified

20
21// Output executa um comando e retorna sua saída padrão.
22func (e *OSCommandExecutor) Output(name string, arg ...string) ([]byte, error) {
23 cmd := exec.Command(name, arg...) //#nosec G204 -- agent/CLI tool execution; commands validated by command_validator + policy_manager upstream
24 return cmd.Output()
25}
26
27// NewOSCommandExecutor cria um novo executor de comandos do sistema operacional.
28func NewOSCommandExecutor() CommandExecutor {

Callers

nothing calls this directly

Calls 1

OutputMethod · 0.65

Tested by

no test coverage detected