WithEnv sets environment variables that will be passed to commands.
(env ...string)
| 115 | |
| 116 | // WithEnv sets environment variables that will be passed to commands. |
| 117 | func WithEnv(env ...string) CLIOption { |
| 118 | return func(c *CLI) { |
| 119 | c.env = append(c.env, env...) |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | func copyLocalConfig(t testing.TB, configDir string) { |
| 124 | t.Helper() |
no outgoing calls