Files
rustGPT/run.sh
leach b171a6b2b2 Initial commit: GPT CLI (Rust)
- Complete Rust implementation of GPT CLI
- Support for OpenAI and Anthropic models
- Session persistence and management
- Web search integration via Responses API
- Interactive commands and model switching
- Comprehensive error handling and logging

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-15 15:01:28 -04:00

11 lines
361 B
Bash
Executable File

#!/bin/bash
# Simple runner script for the Rust gptCLI
# Build if the binary doesn't exist or is older than source files
if [[ ! -f target/release/gpt-cli-rust ]] || [[ src/ -nt target/release/gpt-cli-rust ]]; then
echo "Building gpt-cli-rust..."
cargo build --release
fi
# Run the CLI with any passed arguments
exec ./target/release/gpt-cli-rust "$@"