# Functions
ComposeExceptionsFromPipeline takes a slice of Exception pointers and composes a suitable error.
EachExternal calls f for each name that can resolve to an external command.
MakeVariableRef builds a variable reference.
NewBuiltinFn creates a new ReflectBuiltinFn instance.
NewEvaler creates a new Evaler.
No description provided by the author
NewInteractiveSource returns a Source for a piece of code entered interactively.
No description provided by the author
NewModuleSource returns a Source for a piece of code used as a module.
NewNs creates an empty namespace.
NewScriptSource returns a Source for a piece of code used as a script.
NewTopFrame creates a top-level Frame.
ParseIncompleteVariableRef parses an incomplete variable reference.
ParseVariableRef parses a variable reference.
No description provided by the author
RunTests runs test cases.
SplitIncompleteVariableRef splits an incomplete variable reference into three parts: an optional explode operator (either "" or "@"), a namespace part, and a name part.
SplitVariableRef splits a variable reference into three parts: an optional explode operator (either "" or "@"), a namespace part, and a name part.
No description provided by the author
That returns a new Test with the specified source code.
# Constants
Control flows.
Control flows.
FnSuffix is the suffix for the variable names of functions.
No description provided by the author
NsSuffix is the suffix for the variable names of namespaces.
Control flows.
SrcInteractive is the type of source code entered interactively.
SrcInternal is a special SrcType for internal operations.
SrcModule is the type of source code used as a module.
SrcScript is the type of source code used as a script.
# Variables
BlackholeChan is channel writes onto which disappear, suitable for use as placeholder channel output.
ClosedChan is a closed channel, suitable for use as placeholder channel input.
DevNull is /dev/null.
DevNullClosedInput is a port made up from DevNull and ClosedChan, suitable as placeholder input port.
No description provided by the author
ErrArityMismatch is thrown by a closure when the number of arguments the user supplies does not match with what is required.
Errors thrown when globbing.
Errors thrown when globbing.
Errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrMoreThanOneRest is returned when the LHS of an assignment contains more than one rest variables.
No description provided by the author
No description provided by the author
No description provided by the author
Errors.
Errors.
ErrRelativeUseGoesOutsideLib is thrown when a relative use goes out of the library directory.
ErrRelativeUseNotFromMod is thrown by "use" when relative use is used not from a module.
No description provided by the author
No description provided by the author
IsBuiltinSpecial is the set of all names of builtin special forms.
NoArgs is an empty argument list.
NoOpts is an empty option map.
OK is a pointer to the zero value of Exception, representing the absence of exception.
# Structs
BuiltinFn uses reflection to wrap arbitrary Go functions into Elvish functions.
Closure is a closure defined in elvish script.
CompilationError represents a compilation error and can pretty print it.
EnvList is a variable whose value is constructed from an environment variable by splitting at pathListSeparator.
Evaler is used to evaluate elvish sources.
Exception represents an elvish exception.
ExternalCmd is an external command.
ExternalCmdExit contains the exit status of external commands.
Frame contains information of the current running function, aknin to a call frame in native CPU execution.
GlobPattern is en ephemeral Value generated when evaluating tilde and wildcards.
LValuesOp is an operation on an Frame that produce Variable's.
Op is an operation on an Frame.
PipelineError represents the errors of pipelines, in which multiple commands may error.
Port conveys data stream.
PwdVariable is a variable whose value always reflects the current working directory.
Source describes a piece of source code.
Test is a test case for TestEval.
ValuesOp is an operation on an Frame that produce Value's.
ValuesUnwrapper unwraps []Value.
ValueUnwrapper unwraps one Value.
# Interfaces
AddDirer wraps the AddDir function.
Callable wraps the Call method.
Editor is the interface that the line editor has to satisfy.
LValuesOpBody is the body of an LValuesOp.
OpBody is the body of an Op.
ValuesOpBody is the body of ValuesOp.