2023-06-12 01:41:13 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -eo pipefail
|
|
|
|
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
|
|
|
|
VEILID_SERVER=$SCRIPTDIR/../target/debug/veilid-server
|
|
|
|
|
|
|
|
# Ensure executable exists
|
|
|
|
if [ ! -f "$VEILID_SERVER" ]; then
|
|
|
|
echo "$VEILID_SERVER does not exist. Build with cargo build."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Produce schema from veilid-server
|
2023-06-16 00:22:54 +00:00
|
|
|
$VEILID_SERVER --emit-schema Request > $SCRIPTDIR/veilid/schema/Request.json
|
|
|
|
$VEILID_SERVER --emit-schema RecvMessage > $SCRIPTDIR/veilid/schema/RecvMessage.json
|
2023-06-12 01:41:13 +00:00
|
|
|
|
|
|
|
|