asdf
asdf copied to clipboard
feat: Report missing plugins and install plugins in defined order
Summary
This PR adds two features:
- Indicates in the "install" output if a requested tool/version could not be installed due to the plugin not being installed. This will cause the application to exit with a non-zero exit code. This is functionality that existed in the bash version of the tool and is useful to inform the user that their environment requires additional setup.
- Installs versions based on the order defined in the tool-version files. This is the go equivalent implementation of https://github.com/asdf-vm/asdf/pull/1723 .
Other Information
Sample output:
andre@Andres-MBP asdf % ./asdf install
version 1.23.4 of golang is already installed
version 1.8.2 of bats is already installed
version 0.9.0 of shellcheck is already installed
version 3.6.0 of shfmt is already installed
missing plugin for unknown-plugin
version 8.12.1 of gradle is already installed
version zulu-21.40.17 of java is already installed
version 27.2.2 of erlang is already installed
version 1.18.2-otp-27 of elixir is already installed
andre@Andres-MBP asdf % echo $?
1
@Stratus3D - Ready for some 👀 🙏