1
0
Fork 0
mirror of https://github.com/lightningnetwork/lnd.git synced 2025-03-13 11:09:23 +01:00
lnd/scripts/check-rest-annotations.sh

12 lines
259 B
Bash
Raw Normal View History

2021-07-27 12:59:54 +02:00
#!/bin/bash
for proto in $(find . -name "*.proto"); do
for rpc in $(awk '/ rpc /{print $2}' "$proto"); do
yaml=${proto%%.proto}.yaml
if ! grep -q "$rpc" "$yaml"; then
echo "RPC $rpc not added to $yaml file"
exit 1
fi
done
done