MCPcopy Index your code
hub / github.com/coder/coder / run

Function run

scripts/release/main.go:434–441  ·  view source on GitHub ↗
(command string, args ...string)

Source from the content-addressed store, hash-verified

432}
433
434func run(command string, args ...string) (string, error) {
435 cmd := exec.Command(command, args...)
436 out, err := cmd.CombinedOutput()
437 if err != nil {
438 return "", xerrors.Errorf("command failed: %q: %w\n%s", fmt.Sprintf("%s %s", command, strings.Join(args, " ")), err, out)
439 }
440 return strings.TrimSpace(string(out)), nil
441}

Callers 2

mainFunction · 0.70
checkCoderRepoFunction · 0.70

Calls 2

CommandMethod · 0.80
ErrorfMethod · 0.45

Tested by

no test coverage detected