pub type AtomicShellPipeableCommand<T, W, C> = PipeableCommand<T, Box<SimpleCommand<T, W, Redirect<W>>>, Box<ShellCompoundCommand<T, W, C>>, Arc<ShellCompoundCommand<T, W, C>>>;
Expand description
A type alias for the default hiearchy to represent pipeable commands,
using Arc
wrappers around function declarations.
Aliased Type§
pub enum AtomicShellPipeableCommand<T, W, C> {
Simple(Box<SimpleCommand<T, W, Redirect<W>>>),
Compound(Box<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>),
FunctionDef(T, Arc<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>),
}
Variants§
Simple(Box<SimpleCommand<T, W, Redirect<W>>>)
The simplest possible command: an executable with arguments, environment variable assignments, and redirections.
Compound(Box<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>)
A class of commands where redirection is applied to a command group.
FunctionDef(T, Arc<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>)
A function definition, associating a name with a group of commands,
e.g. function foo() { echo foo function; }
.