MCPcopy
hub / github.com/cloudfoundry/cli / CFWithEnv

Function CFWithEnv

integration/helpers/command.go:97–99  ·  view source on GitHub ↗

CFWithEnv runs a 'cf' command with specified environment variables and given arguments.

(envVars map[string]string, args ...string)

Source from the content-addressed store, hash-verified

95
96// CFWithEnv runs a 'cf' command with specified environment variables and given arguments.
97func CFWithEnv(envVars map[string]string, args ...string) *Session {
98 return CustomCF(CFEnv{EnvVars: envVars}, args...)
99}
100
101// WriteCommand prints the working directory, the environment variables, and
102// 'cf' with the given arguments. Environment variables that are passwords will

Calls 1

CustomCFFunction · 0.85

Tested by

no test coverage detected