Documentation ¶ Index ¶ func ParseCommands(r io.Reader) <-chan Command type Command type Flag type HereDoc Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ParseCommands ¶ func ParseCommands(r io.Reader) <-chan Command Types ¶ type Command ¶ type Command struct { Name string Subcommands []string Flags []Flag Args []string HereDocs []HereDoc // Original is the original command text as read (useful for debugging / reference) Original string } type Flag ¶ type Flag struct { Count int // number of dashes Name string Value string } type HereDoc ¶ type HereDoc struct { Marker string Body string Quoted bool // true if the marker was quoted like <<'EOF' or <<"EOF" } Source Files ¶ View all Source files parser.go Click to show internal directories. Click to hide internal directories.