package shell
import "src.elv.sh/pkg/shell"
Package shell is the entry point for the terminal interface of Elvish.
Index ¶
Types ¶
type Program ¶
type Program struct { ActivateDaemon daemondefs.ActivateFunc // contains filtered or unexported fields }
Program is the shell subprogram. It has two slightly different modes of operation:
When the command line argument contains a filename or "-c some-code", the shell is non-interactive. In this mode, it just evaluates the given file or code.
Otherwise, the shell is interactive, and launches a terminal REPL. This mode also initializes the storage backend, which in turn activates the storage daemon.
To enable building a daemon-less version, the subprogram doesn't depend on pkg/daemon, and the caller should supply pkg/daemon.Activate in the ActivateDaemon field to enable functionalities. If it is nil, daemon functionalities are disabled.
func (*Program) RegisterFlags ¶
func (*Program) Run ¶
Source Files ¶
interact.go paths.go paths_unix.go script.go shell.go signal_unix.go
- Version
- v0.21.0 (latest)
- Published
- Aug 13, 2024
- Platform
- linux/amd64
- Imports
- 31 packages
- Last checked
- 1 day ago –
Tools for package owners.