11 lines
338 B
Bash
11 lines
338 B
Bash
# Find all file extensions.
|
|
function find_ext() {
|
|
local types=($(find -type f | sed -e "s/.*\///" -e "s/^\.//" -e "/\./!d" -e "s/.*\.//"))
|
|
echo "${types[@]}" | tr ' ' '\n' | sort -u
|
|
}
|
|
|
|
# Find all module functions.
|
|
function find_functions() {
|
|
cat "${BASH_MODULE_PATH}"/* | grep "^function.*()" | sed -e "s/^function //" -e "s/().*//"
|
|
}
|