Skip to content

Commit

Permalink
now able to check and confirm API is up to date
Browse files Browse the repository at this point in the history
mahtin committed Jun 19, 2020
1 parent f266fb5 commit f8cc4a7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -76,6 +76,16 @@ sign:
lint:
$(PYLINT) CloudFlare cli4

api:
@tmp=/tmp/_$$$$_ ; \
python -m cli4 --dump | sort > $$tmp.1 ; \
python -m cli4 --api | sed -e 's/?.*//' -e 's/.* //' -e 's/\/:[^:\/]*//g' | sort | uniq > $$tmp.2 ; \
echo "In code:" ; \
diff $$tmp.1 $$tmp.2 | egrep '< ' | sed -e 's/< / /' | sort ; \
echo "In docs:" ; \
diff $$tmp.1 $$tmp.2 | egrep '> ' | sed -e 's/< / /' | sort ; \
rm $$tmp.?

clean:
rm -rf build
rm -rf dist

0 comments on commit f8cc4a7

Please sign in to comment.