#!/usr/bin/env bash

# omarchy:summary=Install the Google Cloud CLI
# omarchy:requires-sudo=true

# Based: Debian carries no gcloud, so it comes through asdf from the
# reviewed plugin bundle; a Mac takes the gcloud-cli cask. The Cloud Code
# editor extension comes with it.

set -eo pipefail

echo "Installing the Google Cloud CLI..."
case $(omarchy-os) in
darwin)
  omarchy-pkg-add gcloud-cli cask=gcloud-cli
  ;;
*)
  omarchy-pkg-add asdf python3
  omarchy-dev-env-tool gcloud
  ;;
esac

omarchy-code-extensions googlecloudtools.cloudcode
