https://bitbucket.org/blais/beancount/issues/150/review-behaviour-of-options-and-plugins
On Mon, Dec 26, 2016 at 2:51 AM, Stefano Zacchiroli <[email protected]> wrote: > On Sun, Dec 25, 2016 at 02:35:08PM -0500, Martin Blais wrote: > > Tell me, how would you expect / like that the options and plugins > > directives be interpreted over multiple files? > > What seems to be a good behavior in your view? > > JFTR: I use a single "big ledger" file, so I don't personally suffer > from the problem of repeating plugins in multiple files. Still, from a > "ledger engineering" point of view, I'd love to have a single "include > plugins.beancount" directive somewhere. > > Answering your question, as a user I'd love "include" to be completely > transparent. That is: the behavior of beancount on a file that contains > one or more "include" lines should be exactly the same of beancount > called on a different file where all includes have been (transitively) > resolved inlining the content(s) of the referenced file(s). > > I'd be totally fine if, to achieve this, you'll end up imposing > draconian restrictions such as: "all 'plugin' and/or 'option' directives > must appear at the beginning of the file obtained after resolving all > 'include' directives". > > I do realize that this might entail implementing a two-stage parsing of > sort, which might be annoying. But you asked about my favorite behavior, > and that would be it :) > > Cheers. > -- > Stefano Zacchiroli . [email protected] . upsilon.cc/zack . . o . . . o . o > Computer Science Professor . CTO Software Heritage . . . . . o . . . o o > Former Debian Project Leader . OSI Board Director . . . o o o . . . o . > « the first rule of tautology club is the first rule of tautology club » > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/beancount/20161226075138.slac6l52pkvrnrij%40upsilon.cc. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhPVyPXFMD6Uadr3xr78LWNqRDQW_W8%3DnCbRYJLK%2B-SgPQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
