-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.ps1
More file actions
72 lines (64 loc) · 2.48 KB
/
test.ps1
File metadata and controls
72 lines (64 loc) · 2.48 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env pwsh
# CC Helper Test Script for PowerShell
# This script tests all major functionality
Write-Host "========================================" -ForegroundColor Cyan
Write-Host "CC Helper - Functionality Test" -ForegroundColor Cyan
Write-Host "========================================" -ForegroundColor Cyan
Write-Host ""
Write-Host "[1/5] Testing cchelper command availability..." -ForegroundColor Yellow
$cchelperCmd = Get-Command cchelper -ErrorAction SilentlyContinue
if ($cchelperCmd) {
Write-Host "[OK] cchelper command found" -ForegroundColor Green
} else {
Write-Host "[FAIL] cchelper command not found" -ForegroundColor Red
Write-Host "Please run: npm link" -ForegroundColor Yellow
exit 1
}
Write-Host ""
Write-Host "[2/5] Testing version command..." -ForegroundColor Yellow
try {
$version = cchelper --version
Write-Host $version
Write-Host "[OK] Version command works" -ForegroundColor Green
} catch {
Write-Host "[FAIL] Version command failed" -ForegroundColor Red
}
Write-Host ""
Write-Host "[3/5] Testing help command..." -ForegroundColor Yellow
try {
cchelper --help | Out-Null
Write-Host "[OK] Help command works" -ForegroundColor Green
} catch {
Write-Host "[FAIL] Help command failed" -ForegroundColor Red
}
Write-Host ""
Write-Host "[4/5] Testing status command..." -ForegroundColor Yellow
try {
cchelper status
Write-Host "[OK] Status command works" -ForegroundColor Green
} catch {
Write-Host "[FAIL] Status command failed" -ForegroundColor Red
}
Write-Host ""
Write-Host "[5/5] Testing Node.js version..." -ForegroundColor Yellow
$nodeVersion = node --version
Write-Host $nodeVersion
Write-Host "[OK] Node.js is installed" -ForegroundColor Green
Write-Host ""
Write-Host "========================================" -ForegroundColor Cyan
Write-Host "Test Summary" -ForegroundColor Cyan
Write-Host "========================================" -ForegroundColor Cyan
Write-Host "All basic tests completed!" -ForegroundColor Green
Write-Host ""
Write-Host "Next steps:" -ForegroundColor Yellow
Write-Host "1. Run 'cchelper' to start interactive mode"
Write-Host "2. Add a profile in Profile Management"
Write-Host "3. Install CCG Skills if needed"
Write-Host "4. Start Claude Code"
Write-Host ""
Write-Host "For more information, see:" -ForegroundColor Yellow
Write-Host "- README.md"
Write-Host "- INSTALL.md"
Write-Host "- EXAMPLES.md"
Write-Host "========================================" -ForegroundColor Cyan
Read-Host "Press Enter to continue"