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
69 stars 16 forks source link

Implement the 'tool install' command #57

Closed chshersh closed 1 year ago

chshersh commented 1 year ago

This command can install a single tool from the repo and update the default configuration as well.

In the first version of this command, it should only support the installation of known tools with the command like:

$ tool install bat

If the tool is unknown, it should print the error message:

$ tool install xxx
Unknown tool: 'xxx'
Supported tools:
    * bat
    * ripgrep
    * ...

The specific behaviour:

  1. Check if the tool is known.
  2. If yes, try syncing the tool.