aboutsummaryrefslogtreecommitdiff
path: root/genapi/main.sh
blob: a5d88bf2b026db729fccb6092f1162343385112b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash
set -euxo pipefail

# First:
# $ python3 -m virtualenv env
# $ source env/bin/activate
# $ pip install -r requirements.txt

_output="$(realpath ../src/generated_api.rs)"

echo "Writing generated API to ${_output}"
./main.py | rustfmt --config max_width=79 > "${_output}"