mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-06-25 07:10:48 -04:00
python work
This commit is contained in:
parent
b6c39ef042
commit
cd04a8a74c
17 changed files with 7309 additions and 4 deletions
17
veilid-python/update_schema.sh
Executable file
17
veilid-python/update_schema.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/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
|
||||
$VEILID_SERVER --emit-schema Request > $SCRIPTDIR/schema/Request.json
|
||||
$VEILID_SERVER --emit-schema RecvMessage > $SCRIPTDIR/schema/RecvMessage.json
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue