github.com/markusbkk/elvish@v0.0.0-20231204143114-91dc52438621/pkg/mods/unix/unix.go (about) 1 //go:build !windows && !plan9 && !js 2 // +build !windows,!plan9,!js 3 4 // Package unix exports an Elvish namespace that contains variables and 5 // functions that deal with features unique to UNIX-like operating systems. On 6 // non-UNIX operating systems it exports an empty namespace. 7 package unix 8 9 import ( 10 "github.com/markusbkk/elvish/pkg/eval" 11 "github.com/markusbkk/elvish/pkg/eval/vars" 12 "github.com/markusbkk/elvish/pkg/logutil" 13 ) 14 15 // ExposeUnixNs indicate whether this module should be exposed as a usable 16 // elvish namespace. 17 const ExposeUnixNs = true 18 19 // Ns is an Elvish namespace that contains variables and functions that deal 20 // with features unique to UNIX-like operating systems. On 21 var Ns = eval.BuildNs(). 22 AddVars(map[string]vars.Var{ 23 "umask": UmaskVariable{}, 24 "rlimits": rlimitsVar{}, 25 }).Ns() 26 27 var logger = logutil.GetLogger("[mods/unix] ")