FuelLabs / fuelup

⛽ The Fuel toolchain installer
https://fuellabs.github.io/fuelup/latest
Apache License 2.0
277 stars 142 forks source link

Clean up console printing when installing fuelup and include links to docs #527

Open JoshuaBatty opened 9 months ago

JoshuaBatty commented 9 months ago

Currently, fuelup is very verbose with what it prints to the console during installation. We should look at moving some of this information to the new log file in #522.

Adding component fuel-core v0.20.5 to 'latest-aarch64-apple-darwin'
Fetching binary from https://github.com/FuelLabs/fuel-core/releases/download/v0.20.5/fuel-core-0.20.5-aarch64-apple-darwin.tar.gz
Unpacking and moving fuel-core-keygen to /.fuelup/store/fuel-core-0.20.5
Unpacking and moving fuel-core to /.fuelup/store/fuel-core-0.20.5
Installed fuel-core v0.20.5 for toolchain 'latest-aarch64-apple-darwin'

Adding component fuel-core-keygen v0.20.5 to 'latest-aarch64-apple-darwin'
Fetching binary from https://github.com/FuelLabs/fuel-core/releases/download/v0.20.5/fuel-core-0.20.5-aarch64-apple-darwin.tar.gz
Unpacking and moving fuel-core-keygen to /.fuelup/store/fuel-core-keygen-0.20.5
Unpacking and moving fuel-core to /.fuelup/store/fuel-core-keygen-0.20.5
Installed fuel-core-keygen v0.20.5 for toolchain 'latest-aarch64-apple-darwin'

Adding component fuel-indexer v0.23.0 to 'latest-aarch64-apple-darwin'
Fetching binary from https://github.com/FuelLabs/fuel-indexer/releases/download/v0.23.0/fuel-indexer-0.23.0-aarch64-apple-darwin.tar.gz
Unpacking and moving fuel-indexer to /.fuelup/store/fuel-indexer-0.23.0
Installed fuel-indexer v0.23.0 for toolchain 'latest-aarch64-apple-darwin'

Installed:
- forc 0.46.1
- forc-explore 0.28.1
- forc-index 0.23.0
- forc-wallet 0.3.0
- fuel-core 0.20.5
- fuel-core-keygen 0.20.5
- fuel-indexer 0.23.0

The Fuel toolchain is installed and up to date

fuelup 0.20.0 has been installed in /.fuelup/bin. To fetch the latest toolchain containing the forc and fuel-core binaries, run 'fuelup toolchain install latest'. To generate completions for your shell, run 'fuelup completions --shell=SHELL'.

/.fuelup/bin already exists in your PATH.

Also, it would be nice to print some links to the documentation after installation is finished. Here is the output of foundry for reference.

.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx

 ╔═╗ ╔═╗ ╦ ╦ ╔╗╔ ╔╦╗ ╦═╗ ╦ ╦         Portable and modular toolkit
 ╠╣  ║ ║ ║ ║ ║║║  ║║ ╠╦╝ ╚╦╝    for Ethereum Application Development 
 ╚   ╚═╝ ╚═╝ ╝╚╝ ═╩╝ ╩╚═  ╩                 written in Rust.

.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx

Repo       : https://github.com/foundry-rs/
Book       : https://book.getfoundry.sh/                      
Chat       : https://t.me/foundry_rs/                         
Support    : https://t.me/foundry_support/
Contribute : https://github.com/orgs/foundry-rs/projects/2/

.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx

foundryup: installing foundry (version nightly, tag nightly)
foundryup: downloading latest forge, cast, anvil, and chisel
############################################################################################## 100.0%
foundryup: downloading manpages
############################################################################################## 100.0%
foundryup: installed - forge 0.2.0 (23aa303 2023-11-28T00:22:05.474570281Z)
foundryup: installed - cast 0.2.0 (23aa303 2023-11-28T00:22:05.463905725Z)
foundryup: installed - anvil 0.2.0 (23aa303 2023-11-28T00:22:05.476902797Z)
foundryup: installed - chisel 0.2.0 (23aa303 2023-11-28T00:22:05.470103422Z)
foundryup: done!
JoshuaBatty commented 2 months ago

These might be a good list for the links

Docs. : https://docs.fuel.network/ Forum : https://forum.fuel.network/ Chat : https://discord.com/invite/fuelnetwork Github : https://github.com/FuelLabs/