pub type CommandList<T, W, C> = AndOrList<ListableCommand<ShellPipeableCommand<T, W, C>>>;
Expand description
A type alias over an and/or list of conventional shell commands.
Generic over the representation of literals, shell words, commands, and redirects.
Uses Rc
wrappers around function declarations.
Aliased Type§
pub struct CommandList<T, W, C> {
pub first: ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, W, Redirect<W>>>, Box<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>, Rc<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>>>,
pub rest: Vec<AndOr<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, W, Redirect<W>>>, Box<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>, Rc<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>>>>>,
}
Fields§
§first: ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, W, Redirect<W>>>, Box<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>, Rc<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>>>
The first command that always runs.
rest: Vec<AndOr<ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, W, Redirect<W>>>, Box<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>, Rc<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>>>>>
The remainder of the conditional commands which may or may not run.