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

ScriptedCommand

ScriptedCommand is one answer a scripted tmux gives. The first matching entry wins, and an invocation nothing matches exits 1 saying so.

Source and package
Qualified name
tmuxtest.ScriptedCommand
Package
tmuxtest
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/tmuxtest/scripted.go
struct tmuxtest.ScriptedCommand

Fields4#

ScriptedCommand fields
NameTypeDescription
Contains []string Contains selects the invocations this entry answers: one matches when its arguments contain every string listed, so "list-sessions" answers that subcommand whatever flags surround it. Empty matches every invocation.
ExitCode int ExitCode is the status the invocation exits with.
Stderr string Stderr is written to standard error exactly, newlines included. This package reads a completed failure from stderr rather than from an exit code, so an entry standing in for one sets this.
Stdout string Stdout is written to standard output exactly, newlines included.
Esc

Type to search.

Reference previewOpen reference