chshersh / tool-sync

🧰 Download pre-built binaries of all your favourite tools with a single command
https://crates.io/crates/tool-sync
Mozilla Public License 2.0
72 stars 17 forks source link

[#57] Adds install command to install known tools #89

Closed MitchellBerend closed 2 years ago

MitchellBerend commented 2 years ago

Resolves #57

This pr adds an isntall subcommand that lets the user install any of the hardcoded tools. As a bonus it also implements the From trait to convert from ToolInfo To ConfigAsset.

Additional tasks

MitchellBerend commented 2 years ago

Im not sure what tests can be added to make sure everything works properly.

chshersh commented 2 years ago

Im not sure what tests can be added to make sure everything works properly.

I think we can add similar integration tests in the ci.yml by calling the tool install command and verifying the tool exists. I have an idea to simplify the testing setup but writing a few lines of YAML should be okay for now 👍🏻