Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit f8cc4a7

Browse files
committed
now able to check and confirm API is up to date
1 parent f266fb5 commit f8cc4a7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ sign:
7676
lint:
7777
$(PYLINT) CloudFlare cli4
7878

79+
api:
80+
@tmp=/tmp/_$$$$_ ; \
81+
python -m cli4 --dump | sort > $$tmp.1 ; \
82+
python -m cli4 --api | sed -e 's/?.*//' -e 's/.* //' -e 's/\/:[^:\/]*//g' | sort | uniq > $$tmp.2 ; \
83+
echo "In code:" ; \
84+
diff $$tmp.1 $$tmp.2 | egrep '< ' | sed -e 's/< / /' | sort ; \
85+
echo "In docs:" ; \
86+
diff $$tmp.1 $$tmp.2 | egrep '> ' | sed -e 's/< / /' | sort ; \
87+
rm $$tmp.?
88+
7989
clean:
8090
rm -rf build
8191
rm -rf dist

0 commit comments

Comments
 (0)