simple-download plugin for the asdf version manager.
asdf-simple-download is an asdf plugin that allows asdf to handle download files from any arbitrary URL. It enables you to easily add any software for which an asdf plugin does not exist to asdf.
TODO: adapt this section
bash
,curl
,tar
: generic POSIX utilities.SOME_ENV_VAR
: set this environment variable in your shell config to load the correct version of tool x.
Install plugin:
# require: Set the URL of the archive file to be downloaded.
export ASDF_PLUGIN_DOWNLOAD_URL=https://example.com/example-software-1.0.0.tar.gz
# Set an arbitrary plugin name
export PLUGIN_NAME=example
asdf plugin add $PLUGIN_NAME https://github.com/buty4649/asdf-simple-download.git
Use plugin:
# Show all installable versions
asdf list-all $PLUGIN_NAME
# Install specific version
asdf install $PLUGIN_NAME latest
# Set a version globally (on your ~/.tool-versions file)
asdf global $PLUGIN_NAME latest
# Now simple-download commands are available
$PLUGIN_NAME --help
Check asdf readme for more instructions on how to install & manage versions.
Contributions of any kind welcome! See the contributing guide.