diff options
| author | codecrafters-bot <hello@codecrafters.io> | 2025-07-14 21:06:11 +0000 |
|---|---|---|
| committer | codecrafters-bot <hello@codecrafters.io> | 2025-07-14 21:06:11 +0000 |
| commit | 148811deccd803be7f9c4a668974afecd4e97f4e (patch) | |
| tree | 9eebb93b2994633e7fb42ec73df34b036fd3d3d8 /your_program.sh | |
| download | redis-rust-148811deccd803be7f9c4a668974afecd4e97f4e.tar.xz redis-rust-148811deccd803be7f9c4a668974afecd4e97f4e.zip | |
init [skip ci]
Diffstat (limited to 'your_program.sh')
| -rwxr-xr-x | your_program.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/your_program.sh b/your_program.sh new file mode 100755 index 0000000..6038af6 --- /dev/null +++ b/your_program.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# +# Use this script to run your program LOCALLY. +# +# Note: Changing this script WILL NOT affect how CodeCrafters runs your program. +# +# Learn more: https://codecrafters.io/program-interface + +set -e # Exit early if any commands fail + +# Copied from .codecrafters/compile.sh +# +# - Edit this to change how your program compiles locally +# - Edit .codecrafters/compile.sh to change how your program compiles remotely +( + cd "$(dirname "$0")" # Ensure compile steps are run within the repository directory + cargo build --release --target-dir=/tmp/codecrafters-build-redis-rust --manifest-path Cargo.toml +) + +# Copied from .codecrafters/run.sh +# +# - Edit this to change how your program runs locally +# - Edit .codecrafters/run.sh to change how your program runs remotely +exec /tmp/codecrafters-build-redis-rust/release/codecrafters-redis "$@" |
