#!/bin/bash

echo "=== Kiểm tra Cloud Tools ==="

echo "Common Tools:"
echo "  kubectl: $(kubectl version --client --short 2>/dev/null || echo 'Not installed')"
echo "  helm: $(helm version --short 2>/dev/null || echo 'Not installed')"
echo "  jq: $(jq --version 2>/dev/null || echo 'Not installed')"
echo "  yq: $(yq --version 2>/dev/null || echo 'Not installed')"
echo "  node: $(node --version 2>/dev/null || echo 'Not installed')"

echo ""
echo "AWS Tools:"
echo "  aws: $(aws --version 2>/dev/null || echo 'Not installed')"
echo "  eksctl: $(eksctl version 2>/dev/null || echo 'Not installed')"
echo "  cdk: $(cdk --version 2>/dev/null || echo 'Not installed')"

echo ""
echo "Azure Tools:"
echo "  az: $(az --version 2>/dev/null | head -n1 || echo 'Not installed')"
echo "  func: $(func --version 2>/dev/null || echo 'Not installed')"
echo "  bicep: $(az bicep version 2>/dev/null || echo 'Not installed')"

echo ""
echo "GCP Tools:"
echo "  gcloud: $(gcloud --version 2>/dev/null | head -n1 || echo 'Not installed')"
echo "  cloud_sql_proxy: $(cloud_sql_proxy --version 2>/dev/null || echo 'Installed' 2>/dev/null || echo 'Not installed')"
echo "  terraform: $(terraform --version 2>/dev/null | head -n1 || echo 'Not installed')"

echo ""
echo "Container Tools:"
echo "  docker: $(docker --version 2>/dev/null || echo 'Not installed')"
echo "  minikube: $(minikube version --short 2>/dev/null || echo 'Not installed')"