As an experiment, I started writing something akin to Ansible to manage my dotfiles.
The reason I think rust is awesome is that could make it fully static and as such self-boostrapping.
The goal is to keep a bunch of files and homebrew packages between two laptops.
Here is the repo: https://github.com/felipesere/dotter
I am wondering about the design though.
For example: how should I deal with errors? I have a Command trait where methods return
What is the right way to deal with multiple errors?
I also don’t really know how to structure my app? At the moment I’ve just dropped files where I thought they make sense, but without much consideration.
I’m also not really sure how to test things.
If someone could point out ways in which I could make the code more idiomatic and testable I’d much appreciate the feedback/advice.