File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,10 @@ after=$(tail -n +$(
11
11
12
12
echo " ${before} " > " README.md"
13
13
14
- curl_max_line_number=$( grep --context=" 0" --line-number --max-count=" 1" ' ^}$' " src/Curl/Curl.php" | \
15
- perl -pe ' s/^(\d+):.*/\1/' )
16
14
echo ' ```php' >> " README.md"
17
- head -n " ${curl_max_line_number} " " src/Curl/Curl.php" | \
18
- egrep " ^ .* function .*" | \
19
- egrep " ^ public" | \
20
- sort | \
21
- perl -pe ' s/^ public (.* )?function /Curl::/' \
22
- >> " README.md"
23
- egrep " ^ .* function .*" " src/Curl/MultiCurl.php" | \
24
- egrep " ^ public" | \
25
- sort | \
26
- perl -pe ' s/^ public (.* )?function /MultiCurl::/' \
27
- >> " README.md"
15
+ find " src/Curl" -type f -name " *Curl*" |
16
+ sort |
17
+ xargs -L 1 -I {} bash -c ' class_name="$(basename --suffix=".php" "{}")" && egrep "^ .* function .*" "{}" | egrep "^ public" | sort | perl -pe "s/^ public (.* )?function /${class_name}::/"' >> " README.md"
28
18
echo ' ```' >> " README.md"
29
19
echo >> " README.md"
30
20
You can’t perform that action at this time.
0 commit comments