Verified Commit fa0840d0 authored by Aral Balkan's avatar Aral Balkan
Browse files

Add ls option

parent 9a22d836
......@@ -55,6 +55,17 @@ if [[ $1 == '?' ]]; then
exit 0
fi
if [[ $1 == 'ls' ]]; then
output="Location===Code\n------------===------------"
for location in "${!locationsToServerCodes[@]}"
do
output="${output}\n${serverCodesToLocations[${locationsToServerCodes[${location}]}]}===$location"
done
echo
echo -e "$output" | column -t -s ===
exit 0
fi
if [[ $1 == 'down' ]]; then
action='down'
if [[ $currentConnection == '' ]]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment