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

Allow the specification of multiple directories/files #14

Open
OddBloke opened this issue Mar 24, 2020 · 3 comments
Open

Allow the specification of multiple directories/files #14

OddBloke opened this issue Mar 24, 2020 · 3 comments

Comments

@OddBloke
Copy link

Given #13, I would like to run astpath explicitly against my code directory (cloudinit/) and my legacy tests directory (tests/). If I invoke astpath with both directories:

astpath "//Str[@s='system']" -d cloudinit -d tests

then only tests/ gets searched; I have to invoke astpath separately for each directory I would like to search.

Ideally, I would be able to specify -d multiple times and have astpath search each one.

@OddBloke
Copy link
Author

(Just wanted to leave a note that I've found astpath really valuable since I discovered it. Thanks for your work on it!)

@hchasestevens
Copy link
Owner

Hi @OddBloke , just confirming that I have seen this ticket (thanks for raising!) and will be looking into it. I'm glad you're finding the tool useful!

@spookylukey
Copy link

This feature is implemented in https://github.com/spookylukey/pyastgrep if you still need this.

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

No branches or pull requests

3 participants