howeyc / ledger

Command line double-entry accounting program
https://howeyc.github.io/ledger/
ISC License
461 stars 43 forks source link

Add support for wildcard includes #16

Closed aThorp96 closed 5 years ago

aThorp96 commented 5 years ago

I don't know if this has been discussed before on here. This is a feature that I've become very accustomed to in ledger, and I think is justifiable to include here (no pun intended).

All that is done to perform the wildcard extension is a call to filename.Glob, with each result being included if it has not been already. This results in the wildcard extensions being parsed in alphabetical order and prevents recursive self-inclusion.

howeyc commented 5 years ago

LGTM

You can fix the cycle error issue you're talking about in another pull request if you want.