commands/functions

This commit is contained in:
Marc Beninca 2025-07-08 15:48:13 +02:00
parent 0926d058f5
commit 9b61976835
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
3 changed files with 38 additions and 2 deletions

View file

@ -85,6 +85,18 @@ BEGIN {
} else {
reset()
}
} else if (action == "commands functions") {
if (match($0, RE_COMMAND, m)) {
append(m[1])
} else if (match($0, RE_FUNCTION, m)) {
n = split(doc, array, "\n")
for (i = 1; i<= n; i++) {
print array[i] " " m[1]
}
reset()
} else {
reset()
}
} else if (action == "doc") {
# doc
if (match($0, RE_SHEBANG, m)) {