godoc for extra packages
This commit is contained in:
parent
fec3550702
commit
b941df68e1
4 changed files with 17 additions and 2 deletions
|
|
@ -24,6 +24,8 @@ import (
|
|||
"gitlab.com/whom/shs/ast"
|
||||
)
|
||||
|
||||
/* Opens a file and lexes+evaluates the contents
|
||||
*/
|
||||
func LoadScript(path string, vt ast.VarTable, ft ast.FuncTable) {
|
||||
scriptFile, err := os.Open(path)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -24,8 +24,10 @@ import (
|
|||
"gitlab.com/whom/shs/ast"
|
||||
)
|
||||
|
||||
// wrap this in a lambda that passes in the vt and ft
|
||||
// I suppose it could be more optimal. Fix if it bothers you
|
||||
/* gathers completions for the last word in a given line
|
||||
* shell wraps this in a lambda that passes in the vt and ft
|
||||
* I suppose it could be more optimal. Fix if it bothers you
|
||||
*/
|
||||
func ShellCompleter(line string, vt ast.VarTable, ft ast.FuncTable) []string {
|
||||
var head, tail string
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue