Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-go latest

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

Fields5#

CommandTrace fields
NameTypeDescription
Duration time.Duration 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 CommandTransport Transport names how the command reached tmux.

Members1#

  • String method String implements fmt.Stringer.
Esc

Type to search.

Reference previewOpen reference