package shell
import "src.elv.sh/pkg/shell"
Package shell is the entry point for the terminal interface of Elvish.
Index ¶
- Variables
- func CleanupRuntime(stderr io.Writer, ev *eval.Evaler)
- func InitRuntime(stderr io.Writer, p Paths, spawn bool) *eval.Evaler
- func Interact(fds [3]*os.File, cfg *InteractConfig)
- func Script(fds [3]*os.File, args []string, cfg *ScriptConfig) int
- type InteractConfig
- type Paths
- type ScriptConfig
Package Files ¶
editor.go interact.go paths.go paths_unix.go runtime.go script.go shell.go signal_unix.go
Variables ¶
Program is the shell subprogram.
func CleanupRuntime ¶
CleanupRuntime cleans up the runtime.
func InitRuntime ¶
InitRuntime initializes the runtime. The caller should call CleanupRuntime when the Evaler is no longer needed.
func Interact ¶
func Interact(fds [3]*os.File, cfg *InteractConfig)
Interact runs an interactive shell session.
func Script ¶
Script executes a shell script.
type InteractConfig ¶
InteractConfig keeps configuration for the interactive mode.
type Paths ¶
type Paths struct { RunDir string Sock string DataDir string Db string Rc string LibDir string Bin string }
Paths keeps all paths required for the Elvish runtime.
func MakePaths ¶
MakePaths makes a populated Paths, using the given overrides.
type ScriptConfig ¶
ScriptConfig keeps configuration for the script mode.
Package shell imports 39 packages (graph) and is imported by 2 packages. Updated now.
Tools for package owners.