-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Moving build dir to another directory #1
Comments
That's really interesting! I'm a fan of symlinks myself. I'll have a think about it. It does seem somewhat of a deviation from the goal of this project but I do like the idea. I hope this isn't too presumptuous but I'd encourage you to write a minimal version and put it up on Github :) Perhaps there will be more people interested in such a thing thank you think! I'd be happy to mention it in the readme of kondo. For example I have thought about making a tool to "manage" symlinks before. To inform me of where I've made them, where they point etc. I'm going to close this issue for now because it's not actionable but I appreciate that you took the time to make it :) ! |
Uhm, perhaps something that could fit kondo is to have a flag that execs a command for each build directory? Like |
I think that printing and executing a command should be two separate flags. Or alternatively, if you want to pipe a list of directories to another tool in a robust way it should be |
Also: with an execute flag you can pass many parameters to the program, such as: the project type (stack/rust/etc), the project root directory, and the build directory. To print a rich data like that you need a serialization format (many programs use json) |
😱 Ok good point, I will strongly consider the execute option, it makes a lot of sense. Do you think modeling it off |
Not that I remember, but
Incidentally, this similar enough to
Or maybe kondo could just not have |
Here's some weird thing I do: I have a directory outside home where I put my
target
,node_modules
etc, and I put symlinks on the project dirs. Those "shadow" directories are arranged in the same directory tree as the home directory. When I delete such build artifacts, I don't delete the directory that contains it (so I do not break the symlink). I do this to keep backups small.I think your tool can help automate this workflow. I could pass a directory to it and it would move build dirs and set up symlinks. I may send a PR if you wish.
Anyway, thanks for this tool!
The text was updated successfully, but these errors were encountered: