mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-12 19:30:11 +01:00
Script to help generate actions list documentation
This commit is contained in:
14
dotfiles/generate-list-actions.sh
Normal file
14
dotfiles/generate-list-actions.sh
Normal 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"
|
||||
|
||||
Reference in New Issue
Block a user