#!/bin/bash

# Add / remove commands here based on what your scripts actually use
REQUIRED_CMDS=(
  fswatch
  file
  grep
  mv
  tee

  # Likely suspects for the transcription stack:
  ffmpeg
  sox
  python
  python3
  # whisper
  # whisperx
)

MISSING=0

echo "=== Checking CLI dependencies ==="
for cmd in "${REQUIRED_CMDS[@]}"; do
  if command -v "$cmd" >/dev/null 2>&1; then
    echo "✅ $cmd found at $(command -v "$cmd")"
  else
    echo "❌ $cmd NOT found"
    ((MISSING++))
  fi
done

if [ "$MISSING" -gt 0 ]; then
  echo
  echo "Summary: $MISSING command(s) are missing."
  exit 1
else
  echo
  echo "All listed commands are available. 🎧"
  exit 0
fi