Env returns a copy of the Cmd with the Environment set to env.
(env *Env)
| 91 | |
| 92 | // Env returns a copy of the Cmd with the Environment set to env. |
| 93 | func (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. |
| 99 | func (cmd Cmd) With(args ...string) Cmd { |
no outgoing calls