MCPcopy Create free account
hub / github.com/google/gapid / Env

Method Env

core/os/shell/command.go:93–96  ·  view source on GitHub ↗

Env returns a copy of the Cmd with the Environment set to env.

(env *Env)

Source from the content-addressed store, hash-verified

91
92// Env returns a copy of the Cmd with the Environment set to env.
93func (cmd Cmd) Env(env *Env) Cmd {
94 cmd.Environment = env
95 return cmd
96}
97
98// With returns a copy of the Cmd with the args added to the end of Args.
99func (cmd Cmd) With(args ...string) Cmd {

Callers 2

TestCommandEnvironmentFunction · 0.80
StartOnDeviceFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestCommandEnvironmentFunction · 0.64