astpath icon indicating copy to clipboard operation
astpath copied to clipboard

Allow the specification of multiple directories/files

Open OddBloke opened this issue 4 years ago • 3 comments

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 avatar Mar 24 '20 16:03 OddBloke

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

OddBloke avatar Mar 24 '20 16:03 OddBloke

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!

hchasestevens avatar Apr 07 '20 18:04 hchasestevens

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

spookylukey avatar Nov 07 '22 19:11 spookylukey