1 | #!/usr/bin/env bash |
2 | # |
3 | # Usage: |
4 | # devtools/py_refactor.sh <function name> |
5 | |
6 | set -o nounset |
7 | set -o pipefail |
8 | set -o errexit |
9 | |
10 | list() { |
11 | devtools/py_refactor.py -l |
12 | |
13 | #devtools/py_refactor.py -h |
14 | } |
15 | |
16 | demo() { |
17 | #devtools/py_refactor.py -f itertools_imports builtin/*_osh.py |
18 | |
19 | devtools/py_refactor.py -f itertools_imports */*.py -w |
20 | } |
21 | |
22 | hi() { |
23 | # copied from /usr/lib/python3.11/lib2to3/fixes |
24 | |
25 | ls devtools/fixes/* |
26 | } |
27 | |
28 | "$@" |