MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / run

Function run

cmd/sqlc-test-setup/main.go:66–73  ·  view source on GitHub ↗

run executes a command with verbose logging, streaming output to stderr.

(name string, args ...string)

Source from the content-addressed store, hash-verified

64
65// run executes a command with verbose logging, streaming output to stderr.
66func run(name string, args ...string) error {
67 log.Printf("exec: %s %s", name, strings.Join(args, " "))
68 cmd := exec.Command(name, args...)
69 cmd.Stdout = os.Stderr
70 cmd.Stderr = os.Stderr
71 cmd.Stdin = os.Stdin
72 return cmd.Run()
73}
74
75// runOutput executes a command and returns its combined output.
76func runOutput(name string, args ...string) (string, error) {

Callers 8

installAptProxyFunction · 0.70
installPostgreSQLFunction · 0.70
installPgDepsFunction · 0.70
installMySQLFunction · 0.70
startPostgreSQLFunction · 0.70
startMySQLFunction · 0.70
ensureMySQLDirsFunction · 0.70
verifyMySQLFunction · 0.70

Calls 1

JoinMethod · 0.45

Tested by

no test coverage detected