parser

package
v0.0.0-...-4ff9c18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2018 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Next

func Next() (env []string, cmd *exec.Cmd, err error)

Next gets the next command to run

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser reads user input for a new command

func NewParser

func NewParser(in io.Reader) *Parser

NewParser returns a fully initialized Parser

func (*Parser) Parse

func (p *Parser) Parse() (env []string, cmd *exec.Cmd, err error)

Parse scans a line of input and then tries to parse changes to the environment, the cmd, and any arguments

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL