Context
I have a list of directories
- libs
  - lib1
  - lib2
  - lib3
  ...
- bin
- WORKSPACE
- BUILD.bazel
...
And I'd like to run gazelle on a subset of these directories that I've whitelisted.
I have hundreds of directories under libs/ and I want to incrementally rollout gazelle.
Question
Can I pass a filegroup to gazelle of the directories that it should check or is there some way to limit which directories gazelle goes over?
 
                        
As some of the comments have indicated,
gazelleaccepts directory names on the command line, egbazel run //:gazelle -- dir1 dir2.If there are a lot of directories, try listing them out in a file then use a combination of
catandxargs. For example,cat dirs | xargs bazel run //:gazelle.