Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli needs to be able to read N directories #71

Closed
peterbe opened this issue Aug 12, 2019 · 1 comment · Fixed by #81
Closed

cli needs to be able to read N directories #71

peterbe opened this issue Aug 12, 2019 · 1 comment · Fixed by #81

Comments

@peterbe
Copy link
Contributor

peterbe commented Aug 12, 2019

At the moment, the main argument to the cli is a list of files. E.g.

yarn run run ../stumptown/packaged/html/reference/elements/*.json

which is expanded by bash so it basically corresponds to typing

yarn run run ../stumptown/packaged/html/reference/elements/abbr.json
yarn run run ../stumptown/packaged/html/reference/elements/address.json
...

What would be ideal is to be able to pass a list of files or directories and if it's a directory I think it should drill down recursively by default. E.g.

yarn run run ../stumptown/packaged/html/reference ../stumptown/packaged/css/ some/other/directory some/other/specific/file.json
@peterbe
Copy link
Contributor Author

peterbe commented Aug 15, 2019

I blogged about the function that made this possible: https://www.peterbe.com/plog/function-expandfiles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant