asdf/lib/commands/list-all.sh
Laurens Duijvesteijn 337b335c4d Check if plugin exists before removing it (#77)
Check if plugin exists before removing it
2016-07-06 08:19:15 +09:00

15 lines
313 B
Bash

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