#!/usr/bin/env bash

# omarchy:summary=Install Pulumi, the infrastructure-as-code CLI
# omarchy:requires-sudo=true

# Based: Debian carries no pulumi, so it comes through asdf from the
# reviewed plugin bundle; a Mac brews it. The Pulumi editor extension comes
# with it.

set -eo pipefail

echo "Installing Pulumi..."
case $(omarchy-os) in
darwin)
  omarchy-pkg-add pulumi
  ;;
*)
  omarchy-pkg-add asdf
  omarchy-dev-env-tool pulumi
  ;;
esac

omarchy-code-extensions pulumi.pulumi-lsp-client
