Documentation
¶
Overview ¶
Package prog provides the entry point to Elvish. Its subpackages correspond to subprograms of Elvish.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DeprecationLevel = 17
DeprecationLevel is a global flag that controls which deprecations to show. If its value is X, Elvish shows deprecations that should be shown for version 0.X.
View Source
var ErrNotSuitable = errors.New("internal error: no suitable subprogram")
ErrNotSuitable is a special error that may be returned by Program.Run, to signify that this Program should not be run. It is useful when a Program is used in Composite.
Functions ¶
func BadUsage ¶
BadUsage returns a special error that may be returned by Program.Run. It causes the main function to print out a message, the usage information and exit with 2.
Types ¶
type Flags ¶
type Flags struct {
Log, CPUProfile string
Help, Version, BuildInfo, JSON bool
CodeInArg, CompileOnly, NoRc bool
RC string
Port int
Daemon bool
Forked int
DB, Sock string
}
Flags keeps command-line flags.
Click to show internal directories.
Click to hide internal directories.