12 lines
180 B
Bash
12 lines
180 B
Bash
#!/bin/bash
|
|
set -euxo pipefail
|
|
|
|
cd schemars/examples
|
|
|
|
rm -f *.schema.json
|
|
|
|
for file in *.rs
|
|
do
|
|
example=${file%.rs}
|
|
cargo run --example "$example" > "$example.schema.json"
|
|
done
|