Crate brush_core

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 commands::CommandArg;
pub use commands::ExecutionContext;
pub use error::BuiltinError;
pub use error::Error;
pub use error::ErrorKind;
pub use results::ExecutionControlFlow;
pub use results::ExecutionExitCode;
pub use results::ExecutionResult;
pub use results::ExecutionSpawnResult;
pub use variables::ShellValue;
pub use variables::ShellVariable;

Modules§

arithmetic
Arithmetic evaluation
builtins
Facilities for implementing and managing builtins
commands
Command execution
completion
Implements programmable command completion support.
env
Implements a shell variable environment.
error
Error facilities
escape
String escaping utilities
expansion
Word expansion utilities.
functions
Structures for managing function registrations and calls.
history
Facilities for tracking and persisting the shell’s command history.
interfaces
Exports traits for shell interfaces implemented by callers.
jobs
Job management
namedoptions
Defines shell options.
openfiles
Managing files open within a shell instance.
options
Defines runtime options for the shell.
pathcache
Path cache
pathsearch
Path searching utilities.
patterns
Shell patterns
processes
Process management
results
Encapsulation of execution results.
scripts
Call stack representations.
sys
Platform abstraction facilities
terminal
Terminal control utilities.
tests
Shell test conditional expressions
timing
Command timing
trace_categories
Trace utilities
traps
Facilities for configuring trap handlers.
variables
Implements variables for a shell environment.

Structs§

CreateOptions
Options for creating a new shell.
ExecutionParameters
Parameters for execution.
Shell
Represents an instance of a shell.
ShellBuilder
Builder for Shell

Enums§

ProcessGroupPolicy
Policy for how to manage spawned external processes.

Traits§

ShellBuilderState
Builder’s type state specifies if members are set or not (unset).

Type Aliases§

ShellFd
Type alias for shell file descriptors.