markbates / grift

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

Check for a grifts folder on startup #2

Closed jcbwlkr closed 7 years ago

jcbwlkr commented 7 years ago

I accidentally ran grift in the wrong folder and got this error message

2017/01/23 15:13:37 exit status 1

I thought this could be improved so I added some checks to cmd.newGrifter() to check that a directory named grifts exists. If there is not it advises the user to run grift init or switch to the right directory.

markbates commented 7 years ago

Thanks!