11 lines
361 B
Bash
11 lines
361 B
Bash
|
|
#!/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 "$@"
|