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

Output tools URLs in the 'default-config' command #111

Closed chshersh closed 2 years ago

chshersh commented 2 years ago

The default configuration contains only tool names:

https://github.com/chshersh/tool-sync/blob/df7d4768c9cff2a91616bd9686bc928a52fc8c10/tests/default-config.toml#L12-L18

But for many people, those names don't mean anything. So I propose to write links to GitHub repos nearby as well. They could serve as a link to documentation and also a quick way to see the tool. So something like this:

# [bat]        # https://github.com/sharkdp/bat
# [difftastic] # https://github.com/Wilfred/difftastic
# [exa]        # https://github.com/ogham/exa
# [fd]         # https://github.com/sharkdp/fd
# [github]     # https://github.com/cli/cli
# [ripgrep]    # https://github.com/BurntSushi/ripgrep
# [tool-sync]  # https://github.com/chshersh/tool-sync

Tool in the config are generated here:

https://github.com/chshersh/tool-sync/blob/df7d4768c9cff2a91616bd9686bc928a52fc8c10/src/config/template.rs#L9

It's pretty easy to add just the URL but it would be nice to have alignment as well