mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
15 lines
315 B
Bash
15 lines
315 B
Bash
list_all_command() {
|
|
local package_name=$1
|
|
local plugin_path=$(get_plugin_path $package_name)
|
|
check_if_plugin_exists $plugin_path
|
|
|
|
local versions=$(bash ${plugin_path}/bin/list-all)
|
|
|
|
IFS=' ' read -a versions_list <<< "$versions"
|
|
|
|
for version in "${versions_list[@]}"
|
|
do
|
|
echo "${version}"
|
|
done
|
|
}
|