Documentation
¶
Overview ¶
Package prog provides the entry point to Elvish. Its subpackages correspond to subprograms of Elvish.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DeprecationLevel = 20
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.
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.
func Exit ¶
Exit returns a special error that may be returned by Program.Run. It causes the main function to exit with the given code without printing any error messages. Exit(0) returns nil.
func NextProgram ¶ added in v0.19.0
NextProgram returns a special error that may be returned by [Program.Run] that is part of a Composite program, indicating that the next program should be tried. It can carry a list of cleanup functions that should be run in reverse order before the Composite program finishes.
Types ¶
type DaemonPaths ¶ added in v0.18.0
type DaemonPaths struct {
DB, Sock string
}
type FlagSet ¶ added in v0.18.0
func (*FlagSet) DaemonPaths ¶ added in v0.18.0
func (fs *FlagSet) DaemonPaths() *DaemonPaths