Skip to main content

peel_simple_command

Function peel_simple_command 

Source
pub fn peel_simple_command(cmd: &Command) -> Option<PeeledCommand>
Expand description

Peel wrappers from a single Command node (one pipeline stage / list operand).

Returns None if the command carries shape that can’t match a flat BashCmdPattern — redirects, leading variable assignments, embedded subshells, or arguments that aren’t plain text.