forked from muratcankoylan/actual_code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·54 lines (46 loc) · 1.55 KB
/
Copy pathrun.sh
File metadata and controls
executable file
·54 lines (46 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# ActualCode - Quick Run Script
# Sets all environment variables and runs the CLI
cd "$(dirname "$0")"
echo "🚀 Starting ActualCode CLI..."
echo ""
# Load .env file if it exists
if [ -f .env ]; then
export $(cat .env | grep -v '^#' | xargs)
echo "✅ Loaded Google Cloud credentials from .env"
else
echo "⚠️ .env file not found (Google Cloud credentials may not be set)"
fi
# Check GitHub token
if [ -z "$GITHUB_TOKEN" ]; then
echo ""
echo "❌ GITHUB_TOKEN not set!"
echo ""
echo "Please run:"
echo " export GITHUB_TOKEN='your_token_here'"
echo ""
echo "Or set it now and run this script again:"
read -p "Enter GitHub Token (or press Enter to exit): " token
if [ -n "$token" ]; then
export GITHUB_TOKEN="$token"
else
exit 1
fi
fi
echo "✅ GitHub token configured"
echo ""
# Activate virtual environment
if [ -d "venv" ]; then
source venv/bin/activate
echo "✅ Virtual environment activated"
else
echo "❌ Virtual environment not found!"
exit 1
fi
echo ""
echo "════════════════════════════════════════════════════════════════"
echo " Ready to Generate Assessment "
echo "════════════════════════════════════════════════════════════════"
echo ""
# Run the CLI
python cli_runner.py