1
0
mirror of https://github.com/mfontanini/presenterm.git synced 2026-09-01 23:33:21 -06:00
presenterm/scripts/generate-config-file-schema.sh
2026-01-24 10:38:02 +01:00

18 lines
383 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
script_dir=$(dirname "$0")
root_dir="${script_dir}/../"
current_schema=$(mktemp)
docker run \
--rm \
-v "${root_dir}:/tmp/workspace" \
-w "/tmp/workspace" \
rust:1.90 \
cargo run --features json-schema -q -- --generate-config-file-schema >"${current_schema}"
cp "$current_schema" "${root_dir}/config-file-schema.json"
rm "$current_schema"