magefile / mage

a Make/rake-like dev tool using Go
https://magefile.org
Apache License 2.0
4.12k stars 251 forks source link

Support working directory in `sh` package #475

Open ecordell opened 1 year ago

ecordell commented 1 year ago

This is primarily to enable passing in a working directory for the command, and adds functional options (instead of adding another variant of the existing commands).

I didn't see https://github.com/magefile/mage/pull/444 before I opened this, but this PR does preserve the existing public interface of sh so it may be a bit easier to swallow.