Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

tmux.CommandTrace

Go
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
tmux
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/observer.go
struct tmux.CommandTrace
struct [source]
struct [source]
struct tmux.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.

6 declared, 0 inherited

Members

  • Duration attribute Duration is how long the attempt took.
  • Err attribute Err is the transport or validation failure, if any. A completed tmux command that failed leaves this nil and reports through ExitCode.
  • ExitCode attribute ExitCode is tmux's exit code, or -1 when no tmux command ran.
  • String method String implements fmt.Stringer.
  • Subcommand attribute Subcommand is the tmux subcommand, such as "list-sessions". A raw command list reports its first subcommand.
  • Transport attribute Transport names how the command reached tmux.
Esc

Type to search.