github.com/elves/elvish@v0.15.0/pkg/eval/mods/unix/unix.go (about)

     1  // +build !windows,!plan9,!js
     2  
     3  // Package unix exports an Elvish namespace that contains variables and
     4  // functions that deal with features unique to UNIX-like operating systems. On
     5  // non-UNIX operating systems it exports an empty namespace.
     6  package unix
     7  
     8  import (
     9  	"github.com/elves/elvish/pkg/eval"
    10  )
    11  
    12  // ExposeUnixNs indicate whether this module should be exposed as a usable
    13  // elvish namespace.
    14  const ExposeUnixNs = true
    15  
    16  // Ns is an Elvish namespace that contains variables and functions that deal
    17  // with features unique to UNIX-like operating systems. On
    18  var Ns = eval.NsBuilder{
    19  	"umask": UmaskVariable{},
    20  }.Ns()