# shellcheck shell=bash DESCRIPTION="configure's menu, --list and an item run on bash 3.2 without errors" TIER=quick list_quietly() { local out err err="$("$CONNECTOR/configure" --list 2>&1 > /dev/null < /dev/null)" [ -z "$err" ] || { echo "$err"; return 1; } } lists() { "$CONNECTOR/configure" --list < /dev/null | grep -qE "^(to do|done) +$1 " } scenario() { check "configure --help" "$CONNECTOR/configure" --help check "configure --list, nothing on stderr" list_quietly for item in core tailscale backup agents ai-servers storage; do check "--list has $item" lists "$item" done check_not "--list leaves out claude, opencode and hermes before they're installed" lists claude check_not "configure fails" "$CONNECTOR/configure" no-such-item check "the menu quits on q" bash -c "echo q | '$CONNECTOR/configure'" check "configure core asks for the Superpanel and rejects an empty one" \ bash -c "printf '\n' | '$CONNECTOR/configure' core | grep -q \"That isn't a Superpanel address\"" }