pub type AtomicCommandList<T, W, C> = AndOrList<ListableCommand<AtomicShellPipeableCommand<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 Arc
wrappers around function declarations.
Aliased Type§
pub struct AtomicCommandList<T, W, C> {
pub first: ListableCommand<PipeableCommand<T, Box<SimpleCommand<T, W, Redirect<W>>>, Box<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>, Arc<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>>>, Arc<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>>>, Arc<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>>>, Arc<CompoundCommand<CompoundCommandKind<T, W, C>, Redirect<W>>>>>>>
The remainder of the conditional commands which may or may not run.