mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
make+scripts: fix rpc-check command
This commit is contained in:
11
scripts/check-rest-annotations.sh
Executable file
11
scripts/check-rest-annotations.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/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
|
Reference in New Issue
Block a user