commands/functions
This commit is contained in:
parent
0926d058f5
commit
9b61976835
3 changed files with 38 additions and 2 deletions
12
sh/code.awk
12
sh/code.awk
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue