#!/usr/bin/env bash
#MISE description="Build the gastro CLI binary"
#MISE sources=["cmd/gastro/**/*.go", "internal/**/*.go", "pkg/**/*.go"]
#MISE outputs=["bin/gastro"]

set -euo pipefail

VERSION="${GASTRO_VERSION:-dev}"

mkdir -p bin
go build -ldflags "-X main.version=${VERSION}" -o bin/gastro ./cmd/gastro/
echo "Built bin/gastro (${VERSION})"
