Skip to content

Commit

Permalink
Add functions-txt subcommand to extract_functions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zonuexe committed Oct 2, 2022
1 parent 7ef8a77 commit 12cf8e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions script/extract_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@
'functions' => function (array $extracted) {
echo json_encode(array_map(array_keys(...), $extracted), JSON_PRETTY_PRINT), PHP_EOL;
},
'functions-txt' => function (array $extracted) {
foreach ($extracted as $functions) {
foreach ($functions as $name => $_) {
echo $name, PHP_EOL;
}
}
},
'functions-sexp' => function (array $extracted) {
echo " '(";
foreach ($extracted as $module => $functions) {
Expand Down

0 comments on commit 12cf8e2

Please sign in to comment.