MCPcopy Create free account
hub / github.com/cogentcore/core / OutputErrOK

Method OutputErrOK

shell/run.go:42–44  ·  view source on GitHub ↗

OutputErrOK executes the given command string, handling the given arguments appropriately. If there is any error, it adds it to the shell. It returns the stdout as a string and forwards stderr to [exec.Config.Stderr] appropriately.

(cmd any, args ...any)

Source from the content-addressed store, hash-verified

40// appropriately. If there is any error, it adds it to the shell. It returns
41// the stdout as a string and forwards stderr to [exec.Config.Stderr] appropriately.
42func (sh *Shell) OutputErrOK(cmd any, args ...any) string {
43 return sh.Exec(true, false, true, cmd, args...)
44}

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected