astpath
astpath copied to clipboard
Allow the specification of multiple directories/files
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.
(Just wanted to leave a note that I've found astpath
really valuable since I discovered it. Thanks for your work on it!)
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!
This feature is implemented in https://github.com/spookylukey/pyastgrep if you still need this.