Replies: 7 comments 10 replies
-
@jgoldhammer @GBrachetta what do you too think? (also related to #7 and partly to #3) |
Beta Was this translation helpful? Give feedback.
-
Thank you for sharing your ideas! In my opinion there could be basically two types:
I can imagine that for the first type there could be a kind of more general (over the rules) type config, maybe a list of folders to always be ignored because in most cases they will be there nonetheless (they are not changing). For the second type I can imagine the current rules system would work, but I also imagine those rules will need to be ran periodically (automatically?) so the user doesn't need to manually do it. It's an easy thing to forget! I also advocate for some The only other little thing I see that needs some addressing is a way to see more clearly what are currently the folders excluded, maybe on a table or with some basic formatting because as it keeps growing, the command Related to this would be nice to have a better verbose mode, because currently (with all the "general" excludes added to each rule) it is really long and difficult to read. P.S. It would be nice to add a little recap of what Thanks for the great work!! |
Beta Was this translation helpful? Give feedback.
-
Nice! Thanks for the feedback!
My main questions right now;
I don't think that writing new rules will be a frequent thing, but I want to make the rules as clean, compact, and easy to manage as possible. (I think the biggest challenge with the other tools is that it is hard to customize them, or add new rules.) I think the biggest commitment with this tool is the initial setup which should be as painless as possible. Maybe even a graphical interface would be good. |
Beta Was this translation helpful? Give feedback.
-
I think it might be better to have a global rule separated. So one global for those folders that are unique ( Unless I'm seeing it wrong... |
Beta Was this translation helpful? Give feedback.
-
What do you all think about this format? https://github.com/tg44/heptapod/blob/main/rules/osx.yaml I made two things today;
Now we can group the rules! I haven't released this version yet. If you think this is generally a good approach;
|
Beta Was this translation helpful? Give feedback.
-
I'm sorry for taking time to take a look, I'm away for a couple days. Will clone asap and try to understand, although golang is unknown to me! 😊 Thank you so much for all your work! |
Beta Was this translation helpful? Give feedback.
-
I wonder if the file trigger could also be an array, so in this case: name: "python_env-multi"
enabled: true
searchPaths: []
ignorePaths: []
ruleType: "list"
ruleSettings:
subRules:
- name: "python_env"
enabled: true
searchPaths: [ "~/dev" ]
ignorePaths: [ "~/dev/alpakka", "~/dev/akka" ]
ruleType: "file-trigger"
ruleSettings:
fileTrigger: [ "requirements.txt", "Pipfile" ]
excludePaths:
- ".venv" we don't need two different rules for |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
Currently, we have rules "by name". So we have 4 python, 2 java etc. rules right now. It would be good to group these rules into one file or to something similar concept.
There are some ideas about the global directory handling like ".yarn" or ".maven" where we either want to globally ignore or globally exclude them (or maybe left it as is to still walk by rules). I think this is a must-have requirement, but adding them as a new rule-type or something new concept, will add a lot of unnecessarily complicated things to the already lot of files.
I think it would be worth talking about this, we have some users already, and I want to see others' opinions here.
My goto idea right now is to make bigger files, and merge multiple
file-trigger
type rules with multiple (new) "global" types as a big list. Add helper CLI functions to switch the globals by name (sth likeheptapod rules globalExclude java/maven
). BUT do you really want to enable/disable rules, or how would you like to use a tool like this?Beta Was this translation helpful? Give feedback.
All reactions