shell

package
v0.18.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2022 License: BSD-2-Clause Imports: 30 Imported by: 5

Documentation

Overview

Package shell is the entry point for the terminal interface of Elvish.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncSHLVL

func IncSHLVL() func()

IncSHLVL increments the SHLVL environment variable. It returns a function to restore the original value of SHLVL.

func MakeEvaler

func MakeEvaler(stderr io.Writer) *eval.Evaler

MakeEvaler creates an Evaler, sets the module search directories and installs all the standard builtin modules. It writes a warning message to the supplied Writer if it could not initialize module search directories.

Types

type Program

type Program struct {
	ActivateDaemon daemondefs.ActivateFunc
	// contains filtered or unexported fields
}

Program is the shell subprogram.

func (*Program) RegisterFlags added in v0.18.0

func (p *Program) RegisterFlags(fs *prog.FlagSet)

func (*Program) Run

func (p *Program) Run(fds [3]*os.File, args []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL