I am trying to get a list of kube-contexts (and filtering for gke clusters) and with some tools ended up with that:
kubectl config get-contexts | tr -s \' \'