CommandLine

A full parsed bash command line, potentially containing multiple commands joined by operators.

Usage

Source

CommandLine()

Use CommandLine.parse(raw) to parse. Access individual commands via .commands or the final command via .primary.

Parameter Attributes

raw: str
parts: tuple[tuple[Command, str | None], …]