File size: 1,039 Bytes
c981f27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/bash
# Smoke test script for verifying forge CLI functionality
# Usage: ./scripts/test_cli.sh

set -e  # Exit on error

echo "=== Building forge CLI ==="
cargo build

echo ""
echo "=== Step 1: Get latest documentation ==="
./target/debug/forge --help

echo ""
echo "=== Step 2: Test with -p flag ==="
./target/debug/forge -p "echo 'CLI test successful'" || echo "Note: -p test may require valid context"

echo ""
echo "=== Step 3: Verify subcommand help ==="
./target/debug/forge list --help
./target/debug/forge conversation --help
./target/debug/forge config --help

echo ""
echo "=== Step 4: Test conversation commands ==="
./target/debug/forge conversation list || echo "No conversations yet (expected)"

echo ""
echo "✅ All smoke tests passed!"
echo ""
echo "Next steps:"
echo "  1. Always run --help first to get latest docs"
echo "  2. Test features with -p flag: ./target/debug/forge -p 'your task'"
echo "  3. Clone conversations before debugging: forge conversation clone <id>"
echo "  4. Never commit during debugging"