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 ¶
This section is empty.
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.