parent
457d82fade
commit
80f244fb08
2 changed files with 7 additions and 19 deletions
|
@ -123,21 +123,9 @@ BEGIN {
|
|||
doc = ""
|
||||
match_task = 0
|
||||
}
|
||||
} else if (action == "aliases functions") {
|
||||
if (match($0, re["alias"])) {
|
||||
append(extract($0, "alias"))
|
||||
} else if (match($0, re["function"])) {
|
||||
split(doc, array, "\n")
|
||||
for (item in array) {
|
||||
alias_eval(array[item], extract($0, "function"), "function")
|
||||
}
|
||||
reset()
|
||||
} else {
|
||||
reset()
|
||||
}
|
||||
} else if (action == "commands functions") {
|
||||
if (match($0, re["command"])) {
|
||||
append(extract($0, "command"))
|
||||
} else if (action == "eval") {
|
||||
if (match($0, re[target])) {
|
||||
append(extract($0, target))
|
||||
} else if (match($0, re["function"])) {
|
||||
split(doc, array, "\n")
|
||||
for (item in array) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue