branch: elpa/php-mode commit 836663957b3b544d797a9a5fa6ae381c3e4008a8 Author: USAMI Kenta <tad...@zonu.me> Commit: USAMI Kenta <tad...@zonu.me>
Add functions-txt subcommand to extract_functions.php --- script/extract_functions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script/extract_functions.php b/script/extract_functions.php index ae3471710e..d61a9a2a90 100755 --- a/script/extract_functions.php +++ b/script/extract_functions.php @@ -33,6 +33,13 @@ $subcommands = [ '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) {