tui-rs/scripts/run-examples.sh
2017-06-15 08:57:07 +02:00

15 lines
277 B
Bash
Executable File

#!/bin/bash
# Run all examples in examples directory
set -eu -o pipefail
for file in examples/*.rs; do
name=$(basename ${file//.rs/})
if [[ "$name" == "rustbox" ]]; then
cargo run --features rustbox --example "$name"
else
cargo run --example "$name"
fi
done