mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-14 19:27:58 +08:00
16 lines
319 B
Go
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{},
|
|
}
|