# tmuxtest.ScriptedCommand

- **Module:** tmuxtest
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/tmuxtest/scripted.go#L13
- **Page:** https://libtmux.org/en/go/latest/reference/tmuxtest-scriptedcommand/

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

## Members

- `Contains` (attribute): 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.
- `Stdout` (attribute): Stdout is written to standard output exactly, newlines included.
- `Stderr` (attribute): 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.
- `ExitCode` (attribute): ExitCode is the status the invocation exits with.
