Script to help generate actions list documentation

This commit is contained in:
Tristan Rowley
2019-12-24 13:54:33 +00:00
parent 9935f1a98b
commit 24df5e7762
2 changed files with 183 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/sh
echo "====== Auto-generated Actions list ======\n"
echo `date`
echo
echo "for branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')"
echo
echo
echo "===== Methods ====="
grep " def " actions.py | grep -v "^#" | sed -e 's/ def //' | sed -e 's/self//' | sed -e 's/(, /(/' | sed -e 's/()//' | sed -e 's/\(.*\)/ *\1/' | sort -n
echo -e "\n----\n"
echo "Autogenerated by dotfiles/generate-list-actions.sh"