package shell
Import Path
src.elv.sh/pkg/shell (on go.dev)
Dependency Relation
imports 38 packages, and imported by 3 packages
Involved Source Files
editor.go
interact.go
paths.go
paths_unix.go
runtime.go
script.go
Package shell is the entry point for the terminal interface of Elvish.
signal_unix.go
Package-Level Type Names (total 8, in which 3 are exported)
InteractConfig keeps configuration for the interactive mode.
Paths Paths
SpawnDaemon bool
func Interact(fds [3]*os.File, cfg *InteractConfig)
Paths keeps all paths required for the Elvish runtime.
Bin string
DataDir string
Db string
LibDir string
Rc string
RunDir string
Sock string
func MakePaths(stderr io.Writer, overrides Paths) Paths
func InitRuntime(stderr io.Writer, p Paths, spawn bool) *eval.Evaler
func MakePaths(stderr io.Writer, overrides Paths) Paths
func setupShell(fds [3]*os.File, p Paths, spawn bool) (*eval.Evaler, func())
Package-Level Functions (total 24, in which 5 are exported)
CleanupRuntime cleans up the runtime.
InitRuntime initializes the runtime. The caller should call CleanupRuntime
when the Evaler is no longer needed.
Interact runs an interactive shell session.
MakePaths makes a populated Paths, using the given overrides.
Script executes a shell script.
Package-Level Variables (total 5, in which 1 are exported)
Program is the shell subprogram.
Package-Level Constants (total 11, none are exported)
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)