-
Notifications
You must be signed in to change notification settings - Fork 269
Open
Labels
Description
Hello,
os/exec.Command
allow a working directory, but sometimes, we need it in sh.Exec
too.
The easy way is to use the exec.Command
function, but i don't like it.
I propose to pass a special variable in env parameter, like this:
Exec(map[string]string { "#CWD": "/home/theUser/mydir" }, nil, nil, "my-command")
MattHodge, eberkund, helsaawy and kalafutMattHodgeMattHodge