Crate brush_core

Source
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§

CreateOptions
Options for creating a new shell.
ExecutionContext
Represents the context for executing a command.
ExecutionParameters
Parameters for execution.
ExecutionResult
Encapsulates the result of executing a command.
OpenFiles
Represents the open files in a shell context.
OpenPipeReader
An opaque wrapper around a pipe reader implementation.
OpenPipeWriter
An opaque wrapper around a pipe writer implementation.
Shell
Represents an instance of a shell.
TerminalControl
Encapsulates the state of a controlled terminal.

Enums§

CommandArg
An argument to a command.
Error
Monolithic error type for the shell
EvalError
Represents an error that occurs during evaluation of an arithmetic expression.
OpenFile
Represents a file open in a shell context.
ProcessGroupPolicy
Policy for how to manage spawned external processes.