tailor icon indicating copy to clipboard operation
tailor copied to clipboard

Exclude files from a set

Open moubry opened this issue 11 years ago • 6 comments

Being able to exclude specific files from a set would be super convenient for me:

require 'tailor/rake_task'

Tailor::RakeTask.new do |task|
  task.file_set 'lib/**/*.rb', 'libraries', [
    'lib/app_agent.rb',
    'lib/progress_bar.rb',
    'lib/report_generator.rb'
  ]
end

I'm cleaning-up a pretty linty app and it would be nice to run Tailor over every file in a folder, except for a few nightmarish ones.

Roughly sketched out here: moubry/tailor@7ee638d55649e63146345f8b05161cbfd8ad6a0c

Is this kind of feature something anyone would be interested in (besides me)?

moubry avatar Aug 28 '13 09:08 moubry

+1.

charlesjohnson avatar Aug 30 '13 22:08 charlesjohnson

+1

fabiopelosin avatar Oct 22 '13 12:10 fabiopelosin

+1

BAjayKrishna avatar Jan 22 '14 20:01 BAjayKrishna

Yeah, this is actually something that I think would be really helpful.

turboladen avatar Jan 24 '14 06:01 turboladen

I'll prepare a pull request.

moubry avatar Jan 24 '14 06:01 moubry

+1

gretel avatar Oct 07 '15 13:10 gretel