CommandTrace
CommandTrace records one completed attempt to run a tmux command. It carries neither the argument vector nor tmux's output, both of which may hold passwords, tokens, or pane contents; CommandError is where a caller that accepts that reads them.
Source and package
- Qualified name
-
tmux.Command Trace - Package
- tmux
- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/observer.go
Fields5#
| Name | Type | Description |
|---|---|---|
| Duration | time | Duration is how long the attempt took. |
| Err | error | Err is the transport or validation failure, if any. A completed tmux command that failed leaves this nil and reports through ExitCode. |
| ExitCode | int | ExitCode is tmux's exit code, or -1 when no tmux command ran. |
| Subcommand | string | Subcommand is the tmux subcommand, such as "list-sessions". A raw command list reports its first subcommand. |
| Transport | Command | Transport names how the command reached tmux. |