A way to add custom options to the hledger print command that is run on the construct output might make sense #97
Replies: 1 comment
-
Hi @lestephane, I have finally sat down and tried out your examples and made sure I understood it. My general feeling is that the context here is I liked the fact that you were able to solve this issue with a more intelligent script. It fits the "more power but more work" intent of Specifically about your 3 points: Regarding limiting transactions to the relevant year, this would have immediate consequences on one of my accounts. Yes, it will probably be better to modify my input statements so that it only contains transactions which fit the year, but I don't think users would want to be forced by the construct script to do that 😃 Regarding your Can you think of other scenarios where adding just a As a side note, one other possible solution for these forecasted transactions could be to designate some But I do like what you did with the dedicated account. |
Beta Was this translation helpful? Give feedback.
-
Context (what brought about headscratching)
import/business/automation/depreciation/1-in/Dell-XPS-9500-20210112.journal
What I ended up doing
Getting to the point
--end
should be set automatically in the hledger print command that is used internally by hledger-flow--begin
should be set automatically in the hledger print command that is used internally by hledger-flow--forecast
should be settable by the person writing the construct script, so that even if hledger-flow does not want to activate it by default, the user can add his custom flags without having to create an additionalhledger print
command in the construct pipeline.I feel strongly about 1 and 2. Should it not be the default?
As for 3, I feel it so much easier to:
--forecast
forecast: tag
not:tag:forecast
when i want to switch off forecasting. The--forecast
option name has always felt funny to me.To make the hledger-flow ignorant of all the idiosyncracies of this or that user, maybe hledger-flow could have a way to pass additional options to the hledger print command that runs on construct output (this would cover adding the
--forecast
option for me, if forecast is to remain switched off by default).Beta Was this translation helpful? Give feedback.
All reactions