#!/bin/sh

# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"

# Find the script path
if [ -f "$SCRIPT_DIR/../list-projects.js" ]; then
  NODE_SCRIPT="$SCRIPT_DIR/../list-projects.js"
else
  echo "\033[31mError: Cannot find list-projects.js script\033[0m"
  exit 1
fi

# Execute the script
node "$NODE_SCRIPT" "$@"