Skip to main content

Crate alba_shell

Crate alba_shell 

Source
Expand description

Alba’s embedded shell: a deterministic, cross-platform, POSIX-like interpreter for beam commands. Standalone by design: this crate depends on no other Alba crate.

Structs§

Program
A sequence of and/or lists, one per ; or newline separated item.
ShellEnv
Everything a run needs: the complete process environment, the starting working directory, a sink for output lines, and a cooperative cancellation signal.
ShellOutputLine
One line of output from a builtin or an external command.
ShellParseError
ShellResult
The outcome of a run: the exit code of the program’s last executed command, or the code an exit builtin stopped it with.
Span
A byte range into the command source string.

Enums§

ShellStream
Which stream an output line came from.

Functions§

execute
Walks program to completion, returning its exit code. An empty program exits 0.
parse
Parses a whole shell command line.