pub fn peel_command(program: &Program) -> Option<PeeledCommand>Expand description
Peel wrappers from a single simple-command program.
Returns None if program is anything other than a single
Statement::Command — pipelines, lists (&& / || / ;), redirected
statements, subshells, control flow all route through the
BashCompound rule (R155-F7) instead.
Returns None if the command has redirects (> file) or leading
variable assignments (FOO=bar cmd …) — those are also compound shapes
that don’t match a flat BashCmdPattern.