elvish/eval/builtin_ns.go
2016-03-06 19:46:38 +01:00

16 lines
319 B
Go

package eval
import (
"strconv"
"syscall"
)
var builtinNamespace = Namespace{
"pid": NewRoVariable(String(strconv.Itoa(syscall.Getpid()))),
"ok": NewRoVariable(OK),
"true": NewRoVariable(Bool(true)),
"false": NewRoVariable(Bool(false)),
"paths": &EnvPathList{envName: "PATH"},
"pwd": PwdVariable{},
}