Add ability to exclude files by mask
p-himik opened this issue · 4 comments
p-himik commented
Use case: for CLJ migrations it makes sense to put the CLJ files among with the SQL and EDN files or in a subdirectory within the migrations directory.
Right now this approach causes migratus to spew out a warning for each such file like this:
WARN migratus.migrations - skipping: 'blah.clj' migrations must match pattern: ^(\d+)-([^\.]+)((?:\.[^\.]+)+)$
IMO it would make sense to just exclude *.clj
in this case.
p-himik commented
An alternative - exclude a particular subdirectory.
yogthos commented
That sounds reasonable, I'd be open for a PR to add that.
p-himik commented
Took me some time. :)
yogthos commented
Thanks, just pushed out 1.4.6
with the changes. Would you mind adding a usage example for the readme as well? and totally missed the readme update. Everything is looking great! :)