MCPcopy
hub / github.com/dgraph-io/dgraph / command

Function command

t/t.go:176–178  ·  view source on GitHub ↗

command takes a list of args and executes them as a program. Example: docker-compose up -f "./my docker compose.yml" would become: command("docker-compose", "up", "-f", "./my docker compose.yml")

(args ...string)

Source from the content-addressed store, hash-verified

174//
175// command("docker-compose", "up", "-f", "./my docker compose.yml")
176func command(args ...string) *exec.Cmd {
177 return commandWithContext(ctxb, args...)
178}
179
180// ensureGoPathLinuxBinEnvVarSet sets LINUX_GOBIN environment variable if not already set.
181// On Linux, it defaults to $GOPATH/bin. On other systems (macOS, etc.), it defaults

Callers 8

ensureDgraphLinuxBinaryFunction · 0.70
startClusterFunction · 0.70
stopClusterFunction · 0.70
runTestsFunction · 0.70
findPackagesForFunction · 0.70
createTestCoverageFileFunction · 0.70
appendTestCoverageFileFunction · 0.70
runFunction · 0.70

Calls 1

commandWithContextFunction · 0.85

Tested by

no test coverage detected