Versions in this module Expand all Collapse all v0 v0.2.1 Jul 1, 2021 Changes in this version + var ErrInvalidSyntax = errors.New("invalid syntax") + func MustParse(cmdline string, expanders ...Expander) [][]string + func Parse(cmdline string, expanders ...Expander) ([][]string, error) + type Commands []*exec.Cmd + func NewCommands(args ...[]string) (cmds Commands) + func (cmds Commands) Err(stderr io.Writer) Commands + func (cmds Commands) In(stdin io.Reader) Commands + func (cmds Commands) Out(stdout io.Writer) Commands + func (cmds Commands) Run() error + func (cmds Commands) Std() Commands + type Expander func(string) (string, error) + var Unbackquote Expander = func(backquoted string) (string, error) { ... } + type Parser struct + func NewParser(s *Scanner, backQuoteExpander, stringExpander Expander) *Parser + func (p *Parser) Parse() ([][]string, error) + type Scanner struct + func NewScanner(text string) *Scanner + func (s *Scanner) Next() (Token, error) + type Token struct + Type TokenType + Value []rune + func Scan(text string) ([]Token, error) + type TokenType uint32 + const TokBackQuote + const TokEOF + const TokPipe + const TokSpace + const TokString + const TokStringDoubleQuote + const TokStringSingleQuote