# tmux.CommandResult

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/command.go#L61
- **Page:** https://libtmux.org/reference/go/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.
