added shell tab complete
This commit is contained in:
parent
44beab651c
commit
d5edb2bad2
4 changed files with 125 additions and 4 deletions
|
|
@ -75,3 +75,18 @@ func GetFunction(arg string, table FuncTable) *Function {
|
|||
|
||||
return target
|
||||
}
|
||||
|
||||
|
||||
/* lists all functions in table
|
||||
*/
|
||||
func ListFuncs(ft FuncTable) []string {
|
||||
keys := make([]string, len(*ft))
|
||||
i := 0
|
||||
|
||||
for k := range *ft {
|
||||
keys[i] = k
|
||||
i++
|
||||
}
|
||||
|
||||
return keys
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue