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

Function Exec

testutil/exec.go:35–38  ·  view source on GitHub ↗

Exec runs a single external command.

(argv ...string)

Source from the content-addressed store, hash-verified

33
34// Exec runs a single external command.
35func Exec(argv ...string) error {
36 _, err := Pipeline([][]string{argv})
37 return err
38}
39
40// ExecWithOpts runs a single external command with the given options.
41func ExecWithOpts(argv []string, opts CmdOpts) error {

Callers 4

TestProtosRegenerateFunction · 0.92
TestDgraphVersionFunction · 0.92
DockerCpFunction · 0.85
DockerExecFunction · 0.85

Calls 1

PipelineFunction · 0.85

Tested by 2

TestProtosRegenerateFunction · 0.74
TestDgraphVersionFunction · 0.74