Documentation
¶
Overview ¶
Package tmuxcmd contains the private tmux process boundary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBackslashReplace ¶
DecodeBackslashReplace decodes UTF-8 and escapes each invalid byte as \xNN.
func SplitStderr ¶
SplitStderr decodes captured standard error into its nonempty lines.
func SplitStdout ¶
SplitStdout decodes captured standard output into lines and drops the trailing blanks tmux's final delimiter produces. Transports other than this runner call it so one command reports the same decoded lines through any of them.
Types ¶
type Request ¶
type Request struct {
Binary string
Arguments []string
Environment []string
Directory string
// Stdio selects direct streaming when non-nil. Nil fields inherit the
// corresponding process standard stream. A nil Stdio preserves captured
// output behavior.
Stdio *Stdio
}
Request describes one subprocess invocation.
type Result ¶
type Result struct {
Command []string
Stdout []string
Stderr []string
RawStdout []byte
ExitCode int
}
Result contains a completed subprocess invocation.
Click to show internal directories.
Click to hide internal directories.