OILS / devtools / py-refactor.sh View on Github | oilshell.org

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