On 15/04/2021 23:27, Martin Blais wrote: > > entries, _, __ = loader.load_file(filename) > for entry in data.filter_txns(entries): > if <condition>: > continue > printer.print_entry(entry) >
My goal is to be able to do something like this: $ foobar.py ledger.beans --where="META('foo') = 'bar'" to have my tool operate on a selection of the entries in ledger.beans. I don't want to have to re-invent a DSL for specifying the --where option, and I think a BQL expression is a fairly nice solution. Cheers, Dan -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/890a57f0-bb7c-4dfc-34f6-01eda6fff46d%40grinta.net.