asdf/lib/commands/list-all.sh

17 lines
347 B
Bash

list_all_command() {
local plugin_name=$1
local plugin_path
plugin_path=$(get_plugin_path "$plugin_name")
check_if_plugin_exists "$plugin_name"
local versions
versions=$(bash "${plugin_path}/bin/list-all")
IFS=' ' read -r -a versions_list <<< "$versions"
for version in "${versions_list[@]}"
do
echo "${version}"
done
}