#!/usr/bin/env bash
# verify:cli — exercise the real buildbard CLI, observe real effects.
set -euo pipefail

fail() { echo "FAIL: $1" >&2; exit 1; }

out=$(uv run buildbard --help) || fail "buildbard --help exited non-zero"
[ -n "$out" ] || fail "--help printed nothing"
echo "$out" | grep -q "buildbard" || fail "--help output lacks program name"

out=$(uv run buildbard) || fail "buildbard (no args) exited non-zero"
echo "$out" | grep -q "buildbard " || fail "default output lacks version string"

echo "PASS: verify:cli (help + default run exit 0 with output)"
