# tmux.CommandResult

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/command.go#L72
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-commandresult/

CommandResult contains one completed tmux invocation. [Server.Cmd] returns it even when tmux exits nonzero. Library operations clone its slices before returning it, so the caller owns Command, Stdout, RawStdout, and Stderr.

## Members

- `Command` (attribute): Command is the executed tmux argument vector.
- `Stdout` (attribute): Stdout contains one decoded standard-output line per element.
- `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.
- `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.
