Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to place statement specific rules in rules sub directory #121

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bronislav
Copy link
Contributor

This is an initial implementation for the #102. Obviously it can not be shipped as is as it is backward incompatible with current version.

I opened this pull request with the sole purpose to get feedback whether @apauley is open for such change or not. I'll add an additional cli flag to allow both behaviour to coexist if this is something you could consider to merge

@bronislav bronislav changed the title feat: replace rules overrides with statement specific rules Ability to place statement specific rules in rules sub directory Apr 12, 2024
@bronislav
Copy link
Contributor Author

I updated the logic to keep the previous behavior and allow a new behavior (statement-specific rules in a subdirectory) at the same time.

The main reason behind this change is that I don't want to rename statements after importing them if I realize that I need a statement-specific rules file.

@apauley What do you think regarding this implementation or do you think that we need a runtime option to enable this behaviour

@bronislav bronislav force-pushed the statement-specific-rules branch 2 times, most recently from 911d8bf to df21454 Compare April 12, 2024 05:16
@apauley
Copy link
Owner

apauley commented Apr 16, 2024

Hi @bronislav - could you update the docs in the README so that it explains how we can make use of this?

https://github.com/apauley/hledger-flow#statement-specific-rules-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants