#!/bin/bash
if [[ $1 == "listall" ]]; then
  echo "
gvm gos (available)
"
	curl -s https://go.googlecode.com/hg/.hgtags | awk '{ print $2 }'
	if [[ $? -ne 0 ]]; then
		echo "Failed to get list from Google"
		exit 1
	fi
  echo
else
  echo "Please use gvm [action] to call this file"
  exit 1
fi

