pub type ShellPipeableCommand<T, W, C> = PipeableCommand<T, Box<SimpleCommand<T, W, Redirect<W>>>, Box<ShellCompoundCommand<T, W, C>>, Rc<ShellCompoundCommand<T, W, C>>>;
Expand description
A type alias for the default hiearchy to represent pipeable commands,
using Rc
wrappers around function declarations.
Aliased Type§
pub enum ShellPipeableCommand<T, W, C> {
Simple(Box<SimpleCommand<T, W, Redirect<W>>>),
Compound(Box<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>),
FunctionDef(T, Rc<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, Rc<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; }
.