Feedback for a _really_ simple CLI tool

Hey!

I'm making my first steps in Rust by trying to rewrite a small tool (originally written in Node.js) in Rust. I've followed most of the awesome rustling exercises and the relevant book chapters, but now I'm looking to gain some hands-on experience and learn to "express myself" in Rust.

I would appreciate any feedback on this. I'm linking to a specific file, but any comments on other files are welcome as well.

Some background/context: the tool is a thin CLI wrapper around Docker Compose, and you can read the full readme here. The Rust version currently implements a very simple command:

dockerized init

That command currently creates a directory (.dockerized) in the current working directory, and should fail if it exists. Of course later, it should do more things, and more commands need to be implemented.

1 Like