Skip to content

Commit

Permalink
improves script for #468
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Sep 4, 2022
1 parent e760d78 commit 651d338
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
2 changes: 1 addition & 1 deletion justpy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""JustPy is an object-oriented, component based, high-level Python Web Framework that requires no front-end programming"""

from .justpy import *
__version__ = "0.4.3"
__version__ = "0.5.0"
33 changes: 28 additions & 5 deletions scripts/findexamples
Original file line number Diff line number Diff line change
@@ -1,8 +1,31 @@
#!/bin/bash
# WF 2022-08-21
# script to find tutorial examples
for md in $(find docs -name "*.md")
do
echo $md
grep jp.justpy $md
done
findexamples() {
for md in $(find docs -name "*.md")
do
echo $md
grep jp.justpy $md
done
}

stats() {
findexamples | grep jp.justpy | sort | uniq -c
}
if [ $# -gt 0 ]
then
case $1 in
stats)
stats
exit 0
;;
unique)
stats | grep -v "1 jp"
exit 0
;;
*)
echo "unknown option $1" 1>&2
exit 1
esac
fi
findexamples

0 comments on commit 651d338

Please sign in to comment.