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

Method Run

shell/run.go:11–13  ·  view source on GitHub ↗

Run executes the given command string, waiting for the command to finish, handling the given arguments appropriately. If there is any error, it adds it to the shell, and triggers CancelExecution. It forwards output to [exec.Config.Stdout] and [exec.Config.Stderr] appropriately.

(cmd any, args ...any)

Source from the content-addressed store, hash-verified

9// If there is any error, it adds it to the shell, and triggers CancelExecution.
10// It forwards output to [exec.Config.Stdout] and [exec.Config.Stderr] appropriately.
11func (sh *Shell) Run(cmd any, args ...any) {
12 sh.Exec(false, false, false, cmd, args...)
13}
14
15// RunErrOK executes the given command string, waiting for the command to finish,
16// handling the given arguments appropriately.

Callers 10

TestMainFunction · 0.45
TestRewriteFunction · 0.45
ExecMethod · 0.45
TestMainFunction · 0.45
TestMainFunction · 0.45
OpenURLMethod · 0.45
OpenURLMethod · 0.45
OpenURLMethod · 0.45
IsDarkMethod · 0.45
dialogsFunction · 0.45

Calls 1

ExecMethod · 0.95

Tested by 4

TestMainFunction · 0.36
TestRewriteFunction · 0.36
TestMainFunction · 0.36
TestMainFunction · 0.36