Type Alias DefaultPipeableCommand

Source
pub type DefaultPipeableCommand = ShellPipeableCommand<String, TopLevelWord<String>, TopLevelCommand<String>>;
Expand description

Type alias for the default PipeableCommand representation.

Aliased Type§

pub enum DefaultPipeableCommand {
    Simple(Box<SimpleCommand<String, TopLevelWord<String>, Redirect<TopLevelWord<String>>>>),
    Compound(Box<CompoundCommand<CompoundCommandKind<String, TopLevelWord<String>, TopLevelCommand<String>>, Redirect<TopLevelWord<String>>>>),
    FunctionDef(String, Rc<CompoundCommand<CompoundCommandKind<String, TopLevelWord<String>, TopLevelCommand<String>>, Redirect<TopLevelWord<String>>>>),
}

Variants§

§

Simple(Box<SimpleCommand<String, TopLevelWord<String>, Redirect<TopLevelWord<String>>>>)

The simplest possible command: an executable with arguments, environment variable assignments, and redirections.

§

Compound(Box<CompoundCommand<CompoundCommandKind<String, TopLevelWord<String>, TopLevelCommand<String>>, Redirect<TopLevelWord<String>>>>)

A class of commands where redirection is applied to a command group.

§

FunctionDef(String, Rc<CompoundCommand<CompoundCommandKind<String, TopLevelWord<String>, TopLevelCommand<String>>, Redirect<TopLevelWord<String>>>>)

A function definition, associating a name with a group of commands, e.g. function foo() { echo foo function; }.