Add list command

This commit is contained in:
Tom Willemse 2014-01-21 23:00:07 +01:00
parent b3d27fc1a8
commit c5ac5dafcb

15
sti
View file

@ -24,6 +24,7 @@ function cmd_help
echo "Commands include: " echo "Commands include: "
echo " help Show this help message" echo " help Show this help message"
echo " install Install a tool from a git repository" echo " install Install a tool from a git repository"
echo " list List downloaded tools"
echo " reinit Retry installing the executables of a tool" echo " reinit Retry installing the executables of a tool"
echo " remove Remove an installed tool" echo " remove Remove an installed tool"
echo echo
@ -32,6 +33,20 @@ information about a command." | fold
fi fi
} }
function help_list ()
{
local xname="$(basename $0)"
echo "Usage: ${xname} list"
echo
echo "List all downloaded (possibly installed) tools." | fold
}
function cmd_list
{
/usr/bin/ls -1 "${data_home}/tools/"
}
function help_reinit () function help_reinit ()
{ {
local xname="$(basename $0)" local xname="$(basename $0)"