web-resource-inliner icon indicating copy to clipboard operation
web-resource-inliner copied to clipboard

Ability to specify multiple `relativeTo` values (e.g. an Array of directories to look under)

Open niftylettuce opened this issue 6 years ago • 4 comments

It would be great to permit multiple relativeTo values, such that it would search across all directories for the first match found. If multiple found then it could give a warning on command line perhaps.

niftylettuce avatar Jul 31 '18 22:07 niftylettuce

I guess that or add some sort of grep option that'll search recursively through everything under some root. I would accept a PR with some form of this as long as it is not a breaking change.

jrit avatar Aug 02 '18 22:08 jrit

@jrit how would you like it to work? sequential searching in order as passed in the array? what if multiple exist, which one gets chosen?

niftylettuce avatar Aug 03 '18 02:08 niftylettuce

The thing about the multiple matches is that is a fundamental problem with this kind of functionality, so as long as you decide and document how it works, it really makes no difference to me. I've never needed and don't expect to ever need this, so you are the subject matter expert here.

jrit avatar Aug 09 '18 03:08 jrit