Tonkpils / snag

Automatic build tool for all your projects
MIT License
32 stars 4 forks source link

Glob matching with ignore yaml. #24

Closed zabawaba99 closed 8 years ago

zabawaba99 commented 9 years ago

It'd be great if we could do file/directory matching like a ignore file does in our yaml so we can do something like

ignore:
  - .git
  - snag**
zabawaba99 commented 9 years ago

It looks like using the filepath package would be our best bet. It has a built in glob function which finds all of the files in the current directory that match a certain pattern. However, the pattern matching is a bit different that how it would with a .gitignore. https://github.com/ryanuber/go-glob might be a good alternative.