Open simonflk opened 2 years ago
Do you have an example of some other CLI that accepts multiple globs? I rarely need such a thing and would like to take a look at the prior art.
Do you have an example of some other CLI that accepts multiple globs? I rarely need such a thing and would like to take a look at the prior art.
Good question. In most cases CLIs I use just accept a list of filenames and you can use multiple globs which will be resolved by your shell . E.g. git add *json *ts
But I think an example of a CLI that accepts and interprets multiple globs itself would be prettier
Edit: babel CLI also accepts multiple globs as patterns to excludes
Hi,
Great work on the CLI, I'm really excited to use this, and this will help me finally get my typegen PR merged.
I just tried it out and ran into a couple of issues:
I believe it needs to change to:
It logs out
${file} - success
for every matching file - even if the file does not contain any machines.I have a monorepo situation, and I want to be able to run typegen across the "apps" folder, and also the "libs" folder. I was trying this:
However, only the 'apps' folder is touched.
I also tried brace expansion:
but this is not supported by picomatch (used by chokidar)
I also tried
however, this traverses everything, including node_modules.