need to write / find a formatter that deletes binaries in certain directories #350
-
thanks you all for this project and also nits btw @ brianmcgee I need a write a golang based formatter that can remove binaries files that build up in dev's mono repo's. These are named .bin and .dep and get auto built when source code changes somewhere else. It's a real time CI / CD system. I dont use Nix btw. I have no idea if this is possible with treefmt. Can someone point me in the right direction ? I also have other formatters in mind for doing XML formatting, but that latter As an aside, u discovered NITS and its exactly what I was already doing and so would like to try out NITS. treefmt might be useful for doing housekeeping on these remote machines also using a variety of formula's. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, Sorry for the late reply, I'm only seeing this discussion now as I was browsing the repo. I'm glad you like Writing a formatter to remove built-up binaries, I would say, falls outside the scope of a formatter and, therefore, outside the scope of You could re-use some bits of treefmt to help traverse the file system, match those files, and so on. Have a look at the walker implementations, for example. |
Beta Was this translation helpful? Give feedback.
Hi,
Sorry for the late reply, I'm only seeing this discussion now as I was browsing the repo.
I'm glad you like
treefmt
, and it's always nice to hear from someone else who's enthusiastic about NATS 😄Writing a formatter to remove built-up binaries, I would say, falls outside the scope of a formatter and, therefore, outside the scope of
treefmt
.You could re-use some bits of treefmt to help traverse the file system, match those files, and so on. Have a look at the walker implementations, for example.