On this page
tmux.CommandResult
- Module
- tmux
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/command.go
-
CommandResult contains one completed tmux invocation.
Server.Cmdreturns it even when tmux exits nonzero. Library operations clone its slices before returning it, so the caller owns Command, Stdout, RawStdout, and Stderr.
5 declared, 0 inherited
Members
- Command attribute Command is the executed tmux argument vector.
- ExitCode attribute ExitCode is tmux's completed process exit code, or -1 when no tmux command ran: this package refused the request, or a transport failed before tmux answered. A negative code is therefore never tmux's opinion of the request, and an error carrying one has a reason of its own.
- RawStdout attribute RawStdout contains exact captured standard-output bytes, including line delimiters and trailing newlines. It is nil when no output was captured.
- Stderr attribute Stderr contains one decoded standard-error line per element.
- Stdout attribute Stdout contains one decoded standard-output line per element.