markbates / grift

Go based task runner
MIT License
432 stars 24 forks source link

Change directory to the parent of the grifts directory #12

Closed ryanfaerman closed 7 years ago

ryanfaerman commented 7 years ago

This makes it easier to predict the path when creating tasks. Since you can now run your grifts from any subdirectory of your project, you can't predict the current working directory.

This makes it a real challenge to have your tasks load relative paths. Instead of pushing that complexity into the authors of the tasks we just change to the parent of the grifts directory.