#!/usr/bin/env bash

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

# Based: hcloud through asdf, from the plugin Based maintains.

set -eo pipefail

asdf_data=${ASDF_DATA_DIR:-$HOME/.asdf}
omarchy-pkg-add asdf
export PATH="$asdf_data/shims:$PATH"

echo -e "Installing the Hetzner Cloud CLI...\n"
omarchy-dev-env-tool hcloud
