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

Method Run

utils/exec_utils.go:16–19  ·  view source on GitHub ↗

Run executa um comando e espera ele terminar.

(name string, arg ...string)

Source from the content-addressed store, hash-verified

14
15// Run executa um comando e espera ele terminar.
16func (e *OSCommandExecutor) Run(name string, arg ...string) error {
17 cmd := exec.Command(name, arg...) //#nosec G204 -- agent/CLI tool execution; commands validated by command_validator + policy_manager upstream
18 return cmd.Run()
19}
20
21// Output executa um comando e retorna sua saída padrão.
22func (e *OSCommandExecutor) Output(name string, arg ...string) ([]byte, error) {

Callers

nothing calls this directly

Calls 1

RunMethod · 0.65

Tested by

no test coverage detected