Expand description
Core implementation of the brush shell. Implements the shell’s abstraction, its interpreter, and various facilities used internally by the shell.
Re-exports§
pub use variables::ShellValue;
pub use variables::ShellVariable;
Modules§
- builtins
- Infrastructure for shell built-in commands.
- completion
- Implements programmable command completion support.
- env
- Implements a shell variable environment.
- functions
- Structures for managing function registrations.
- interfaces
- Exports traits for shell interfaces implemented by callers.
- options
- Defines runtime options for the shell.
- traps
- Facilities for configuring trap handlers.
- variables
- Implements variables for a shell environment.
Macros§
- minus_
or_ plus_ flag_ arg - Macro to define a struct that represents a shell built-in flag argument that can be enabled or disabled by specifying an option with a leading ‘+’ or ‘-’ character.
Structs§
- Create
Options - Options for creating a new shell.
- Execution
Context - Represents the context for executing a command.
- Execution
Parameters - Parameters for execution.
- Execution
Result - Encapsulates the result of executing a command.
- Open
Files - Represents the open files in a shell context.
- Open
Pipe Reader - An opaque wrapper around a pipe reader implementation.
- Open
Pipe Writer - An opaque wrapper around a pipe writer implementation.
- Shell
- Represents an instance of a shell.
- Terminal
Control - Encapsulates the state of a controlled terminal.
Enums§
- Command
Arg - An argument to a command.
- Error
- Monolithic error type for the shell
- Eval
Error - Represents an error that occurs during evaluation of an arithmetic expression.
- Open
File - Represents a file open in a shell context.
- Process
Group Policy - Policy for how to manage spawned external processes.