Download .forge/skills/debug-cli/scripts/test_cli.sh from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/.forge/skills/debug-cli/scripts/test_cli.sh
- Command line
-
hf download hf://SaylorTwift/forgecode/.forge/skills/debug-cli/scripts/test_cli.sh
-
curl -L -o test_cli.sh https://huggingface.co/SaylorTwift/forgecode/resolve/main/.forge/skills/debug-cli/scripts/test_cli.sh
1.04 kB
| # 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" | |