Package prog provides the entry point to Elvish. Its subpackages correspond to subprograms of Elvish.
ShowDeprecations is a global flag that controls whether to show deprecations.
BadUsage returns an error that may be returned by Program.Main, which requests the main program to print out a message, the usage information and exit with 2.
Exit returns an error that may be returned by Program.Main, which requests the main program to exit with the given code. If the exit code is 0, it returns nil.
Run parses command-line flags and runs the first applicable subprogram. It returns the exit status of the program.
SetShowDeprecations sets ShowDeprecations to the given value, and returns a function to restore the old value.
Flags keeps command-line flags.
Program represents a subprogram.
|progtest||Package progtest provides utilities for testing subprograms.|