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

Method Output

shell/run.go:35–37  ·  view source on GitHub ↗

Output 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

33// appropriately. If there is any error, it adds it to the shell. It returns
34// the stdout as a string and forwards stderr to [exec.Config.Stderr] appropriately.
35func (sh *Shell) Output(cmd any, args ...any) string {
36 return sh.Exec(false, false, true, cmd, args...)
37}
38
39// OutputErrOK executes the given command string, handling the given arguments
40// appropriately. If there is any error, it adds it to the shell. It returns

Callers 7

TestExecFunction · 0.45
ExecMethod · 0.45
mainFunction · 0.45
ChangedFunction · 0.45
envClangFunction · 0.45
goEnvFunction · 0.45
LinkerFlagsFunction · 0.45

Calls 1

ExecMethod · 0.95

Tested by 1

TestExecFunction · 0.36