MCPcopy Create free account
hub / github.com/containerd/nerdctl / withEnv

Method withEnv

mod/tigron/test/command.go:66–66  ·  view source on GitHub ↗

withEnv *copies* the passed map to the environment of the command to be executed Note that this will override any variable defined in the embedding environment

(env map[string]string)

Source from the content-addressed store, hash-verified

64 // withEnv *copies* the passed map to the environment of the command to be executed
65 // Note that this will override any variable defined in the embedding environment
66 withEnv(env map[string]string)
67 // withTempDir specifies a temporary directory to use
68 // FIXME: this is only required because of the current command extension mechanism
69 withTempDir(path string)

Callers 1

RunMethod · 0.95

Implementers 1

GenericCommandmod/tigron/test/command.go

Calls

no outgoing calls

Tested by

no test coverage detected