Documentation ¶
Index ¶
- func Escape(s string) string
- func ParseCommand(s string) (env []string, args []string)
- func ParseInput(s string) (env []string, input string)
- func Unescape(s string) string
- type Case
- type CaseReadline
- type CaseRun
- func (cr *CaseRun) Args() []string
- func (cr *CaseRun) ConfigDir() (string, error)
- func (cr *CaseRun) Environ() []string
- func (cr *CaseRun) FS() fs.FS
- func (cr *CaseRun) History() ([]string, error)
- func (cr *CaseRun) InterruptChan() chan struct{}
- func (cr *CaseRun) Line() int
- func (cr *CaseRun) Platform() interp.Platform
- func (cr *CaseRun) Readline(opts interp.ReadlineOpts) (string, error)
- func (cr *CaseRun) Stderr() interp.Output
- func (cr *CaseRun) Stdin() interp.Input
- func (cr *CaseRun) Stdout() interp.Output
- func (cr *CaseRun) ToExpectedStderr() string
- func (cr *CaseRun) ToExpectedStdout() string
- type CaseRunInput
- type CaseRunOutput
- type Section
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCommand ¶
func ParseInput ¶
Types ¶
type Case ¶
func ParseCases ¶
type CaseReadline ¶
type CaseReadline struct {
// contains filtered or unexported fields
}
type CaseRun ¶
type CaseRun struct { LineNr int Case *Case Command string Env []string StdinInitial string ExpectedStdout string ExpectedStderr string ExpectedExitCode int ActualStdoutBuf *bytes.Buffer ActualStderrBuf *bytes.Buffer ActualExitCode int Readlines []CaseReadline ReadlinesPos int ReadlineEnv []string WasRun bool // contains filtered or unexported fields }
func (*CaseRun) InterruptChan ¶
func (cr *CaseRun) InterruptChan() chan struct{}
func (*CaseRun) ToExpectedStderr ¶
func (*CaseRun) ToExpectedStdout ¶
type CaseRunInput ¶
type CaseRunInput struct { interp.FileReader // contains filtered or unexported fields }
func (CaseRunInput) IsTerminal ¶
func (i CaseRunInput) IsTerminal() bool
func (CaseRunInput) Size ¶
func (i CaseRunInput) Size() (int, int)
type CaseRunOutput ¶
func (CaseRunOutput) IsTerminal ¶
func (o CaseRunOutput) IsTerminal() bool
func (CaseRunOutput) Size ¶
func (o CaseRunOutput) Size() (int, int)
Click to show internal directories.
Click to hide internal directories.