zyedidia / eget

Easily install prebuilt binaries from GitHub.
MIT License
866 stars 39 forks source link

regex support for -a #63

Open xkcd386at opened 1 year ago

xkcd386at commented 1 year ago

Hi

Thanks for a great tool; makes so many things easier on various machines!

Some of my eget commands appear to be using asset filtering like -a tar.gz -a ^sig (e.g., caddyserver/caddy is one example off the top of my head).

Would be nice to be able to say -a tar.gz$. I saw some mention of regex in various issues, but they all appeared to be more about priority between --system and --asset.

Please note this is only about convenience, so I'm OK if your response is a WONTFIX, but had to ask anyway :)

zyedidia commented 1 year ago

Hmm I've been trying to avoiding using regexes to reduce the complexity, and avoid problems with special characters like .. I wonder if the best solution is to have a new option for special cases that is like -a but uses a regex.

patinthehat commented 1 year ago

This is something I'd be interested in working on if no one else wants to pick it up.